WO2016173225A1 - 一种基于移动终端距离传感器的对焦方法及对焦系统 - Google Patents

一种基于移动终端距离传感器的对焦方法及对焦系统 Download PDF

Info

Publication number
WO2016173225A1
WO2016173225A1 PCT/CN2015/093338 CN2015093338W WO2016173225A1 WO 2016173225 A1 WO2016173225 A1 WO 2016173225A1 CN 2015093338 W CN2015093338 W CN 2015093338W WO 2016173225 A1 WO2016173225 A1 WO 2016173225A1
Authority
WO
WIPO (PCT)
Prior art keywords
distance
motor
focus
distance sensor
fine adjustment
Prior art date
Application number
PCT/CN2015/093338
Other languages
English (en)
French (fr)
Inventor
李文渊
Original Assignee
惠州Tcl移动通信有限公司
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 惠州Tcl移动通信有限公司 filed Critical 惠州Tcl移动通信有限公司
Priority to US15/308,600 priority Critical patent/US20170257555A1/en
Publication of WO2016173225A1 publication Critical patent/WO2016173225A1/zh

Links

Classifications

    • GPHYSICS
    • G02OPTICS
    • G02BOPTICAL ELEMENTS, SYSTEMS OR APPARATUS
    • G02B7/00Mountings, adjusting means, or light-tight connections, for optical elements
    • G02B7/28Systems for automatic generation of focusing signals
    • GPHYSICS
    • G02OPTICS
    • G02BOPTICAL ELEMENTS, SYSTEMS OR APPARATUS
    • G02B7/00Mountings, adjusting means, or light-tight connections, for optical elements
    • G02B7/28Systems for automatic generation of focusing signals
    • G02B7/285Systems for automatic generation of focusing signals including two or more different focus detection devices, e.g. both an active and a passive focus detecting device
    • GPHYSICS
    • G02OPTICS
    • G02BOPTICAL ELEMENTS, SYSTEMS OR APPARATUS
    • G02B7/00Mountings, adjusting means, or light-tight connections, for optical elements
    • G02B7/28Systems for automatic generation of focusing signals
    • G02B7/36Systems for automatic generation of focusing signals using image sharpness techniques, e.g. image processing techniques for generating autofocus signals
    • G02B7/38Systems for automatic generation of focusing signals using image sharpness techniques, e.g. image processing techniques for generating autofocus signals measured at different points on the optical axis, e.g. focussing on two or more planes and comparing image data
    • 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
    • H04N23/671Focus control based on electronic image sensor signals in combination with active ranging signals, e.g. using light or sound signals emitted toward objects
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72403User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M2250/00Details of telephonic subscriber devices
    • H04M2250/12Details of telephonic subscriber devices including a sensor for measuring a physical value, e.g. temperature or motion
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M2250/00Details of telephonic subscriber devices
    • H04M2250/52Details of telephonic subscriber devices including functional features of a camera

Definitions

  • the present invention relates to the field of mobile terminal technologies, and in particular, to a focusing method and a focusing system based on a distance sensor of a mobile terminal.
  • the traditional mobile phone camera focusing algorithm is to obtain the focus value of the image when the motor position is obtained by moving the motor continuously, also called FV (focus Value) to determine the clarity of the image, to determine the best motor position after scanning, and then move the motor to the clearest position.
  • FV focus Value
  • the whole process varies according to the range of the search, and the frame rate is 0.5-2 seconds at different times. Especially in the dark, due to insufficient light, the exposure time of the mobile phone will increase accordingly, resulting in a longer focusing time after the frame rate becomes lower. This delay is likely to cause the photographer to lose the opportunity to capture "exciting moments.”
  • Focusing in the prior art often requires scanning the entire focus range and then finding the sharpest point. Due to the large scope of the search, many frames are often needed to distinguish which one is the clearest. In the dark environment, due to the long exposure time, the frame rate is low, the focus time will be dragged to a few seconds, and sometimes the final focus may fail due to insufficient image brightness or flaws in the algorithm itself. And because the focus achieved by the pure software algorithm can not determine whether the object has changed position with the lens, it may be purely in focus, or the object moves without focusing.
  • the technical problem to be solved by the present invention is to provide a focusing method and a focusing system based on the distance sensor of the mobile terminal, aiming at solving the problem that the user takes a long time to focus or repeat focusing in the prior art. Defects in delayed shooting time.
  • a focusing method based on a mobile terminal distance sensor comprising the steps of:
  • the distance sensor When detecting that the mobile terminal starts the camera function, the distance sensor acquires a distance between the current camera and the object to be photographed and stores the distance;
  • the motor is controlled to move to a position corresponding to the maximum focus value to complete the focus.
  • the method for determining a focus based on a distance sensor of a mobile terminal wherein the step of determining whether the distance currently acquired by the distance sensor and the distance obtained by the distance sensor are changed last time further includes:
  • the motor is controlled not to move at the current position.
  • the method for focusing on a mobile terminal distance sensor wherein the step of acquiring a focus value of the acquired image when the motor moves at different positions within the fine adjustment range comprises:
  • the method for focusing on a mobile terminal distance sensor wherein the step of acquiring a fine adjustment range of the motor according to the current distance comprises:
  • the pre-stored focus fine adjustment range table is queried according to the current distance to obtain a fine adjustment range of the motor.
  • a focusing method based on a mobile terminal distance sensor comprising:
  • the distance sensor When detecting that the mobile terminal starts the camera function, the distance sensor acquires the distance between the current camera and the object to be photographed and stores it;
  • the pre-stored focus fine-tuning range table is obtained according to the current distance to obtain the fine adjustment range of the motor, the control motor moves within the fine-tuning range, and the image is acquired in real time;
  • the method for focusing on a mobile terminal distance sensor wherein the step of the distance sensor acquiring the distance between the current camera and the object to be photographed and storing the distance when the mobile terminal starts the camera function further includes:
  • a correspondence table of the distance between the distance sensor and the object to be photographed and the motor focus trimming range is set in advance and stored.
  • the method for determining a focus based on a distance sensor of a mobile terminal wherein the step of determining whether the distance currently acquired by the distance sensor and the distance obtained by the distance sensor are changed last time includes:
  • the motor is controlled not to move at the current position.
  • the method for focusing on a distance sensor based on a mobile terminal wherein if the determination distance changes, the pre-stored focus fine adjustment range table is obtained according to the current distance to obtain a fine adjustment range of the motor, and the control motor moves within the fine adjustment range.
  • the steps of acquiring images in real time include:
  • the motor is controlled to move within the fine tuning range and images are acquired in real time.
  • the focusing method based on a mobile terminal distance sensor wherein the acquiring a focus value of a captured image when the motor moves at different positions within the fine adjustment range, and controlling the motor to move to a position where the focus value is maximum to complete the focusing step Specifically include:
  • the motor is controlled to move to a position at which the focus value is maximum to complete focusing.
  • a focusing system based on a mobile terminal distance sensor comprising:
  • a detecting and acquiring module configured to detect, when the mobile terminal starts the camera function, the distance sensor acquires a distance between the current camera and the object to be photographed and stores the distance;
  • a determining module configured to determine whether a distance currently acquired by the distance sensor and a distance obtained by the distance sensor last time change
  • the query and image acquisition module is configured to: if the determined distance changes, query the pre-stored focus fine adjustment range table according to the current distance to obtain the fine adjustment range of the motor, and control the motor to move within the fine adjustment range, and collect the image in real time;
  • an acquisition and control module configured to acquire a focus value of the acquired image when the motor moves at different positions within the fine adjustment range, and control the motor to move to a position where the focus value is the largest to complete the focus.
  • the focus system based on the mobile terminal distance sensor further includes:
  • a storage module configured to preset and store a correspondence table of a distance between the distance sensor and the object to be photographed and a range of focus adjustment of the motor.
  • the focus system of the mobile terminal distance sensor wherein the determining module further comprises:
  • the judgment and control unit is configured to control the motor not to move at the current position if it is determined that the distance has not changed.
  • the focus system of the mobile terminal distance sensor wherein the query and image acquisition module specifically includes:
  • a detecting and acquiring unit configured to acquire a current distance between the distance sensor and the object to be photographed if the distance is determined to be changed
  • a query unit configured to query a pre-stored focus fine adjustment range table according to the current distance, and obtain a fine adjustment range of the motor
  • a control and acquisition unit for controlling the motor to move within the fine adjustment range and acquiring an image in real time.
  • the focus system of the mobile terminal distance sensor wherein the acquisition and control module specifically includes:
  • a comparison unit for comparing all focus values and obtaining a position at which the focus value is maximum
  • control unit configured to control the motor to move to a position when the focus value is maximum to complete focusing.
  • a storage medium storing processor-executable instructions, wherein the processor-executable instructions are for causing a processor to:
  • the distance sensor When detecting that the mobile terminal starts the camera function, the distance sensor acquires the distance between the current camera and the object to be photographed and stores it;
  • the pre-stored focus fine-tuning range table is queried according to the current distance to obtain a fine adjustment range of the motor, and the motor is controlled to move within the fine-tuning range, and an image is acquired in real time;
  • the storage medium wherein the processor executable instructions stored in the storage medium, before the processor performs the operation of detecting that the mobile terminal starts the camera function, before the distance sensor acquires the distance between the current camera and the object to be photographed and stores the operation Also used to let the processor do the following:
  • a correspondence table of the distance between the distance sensor and the object to be photographed and the motor focus trimming range is set in advance and stored.
  • the storage medium wherein the processor-executable instructions stored in the storage medium are after an operation of causing the processor to complete determining whether the distance currently acquired by the distance sensor and the distance acquired by the distance sensor are changed Also used to let the processor do the following:
  • the motor is controlled not to move at the current position.
  • the storage medium wherein the processor executable instructions stored in the storage medium acquires a fine adjustment range of the motor by allowing the processor to query a pre-stored focus fine adjustment range table according to the current distance, and control the motor to move within the fine adjustment range And acquiring the image in real time, letting the processor perform the following operations: if it is determined that the distance has changed, obtaining the current distance between the distance sensor and the object to be photographed;
  • the motor is controlled to move within the fine tuning range and images are acquired in real time.
  • the storage medium wherein the processor executable in the storage medium executes instructions to control a motor to move to a focus value when the processor acquires a focus value of the acquired image when the motor moves at different positions within the fine adjustment range The largest position to complete the focus, let the processor do the following:
  • the motor is controlled to move to a position at which the focus value is maximum to complete focusing.
  • the invention provides a focusing method and a focusing system based on a distance sensor of a mobile terminal, the method comprising the steps of: detecting that a mobile terminal activates a camera function, the distance sensor acquires a distance between the current camera and the object to be photographed, and stores the distance; the distance sensor determines the current Whether the distance from the distance sensor and the object to be photographed changes; if the distance is changed, the pre-stored focus fine-tuning range table is obtained according to the current distance to obtain the fine adjustment range of the motor, and the control motor moves within the fine adjustment range. And collect images in real time; obtain the focus value of the acquired image when the motor moves in different positions within the fine adjustment range, control the motor to move to the position with the largest focus value, and complete the focus.
  • the invention can realize the object not moving and does not focus.
  • the focus is triggered immediately.
  • the focus adjustment range has been set in the debugging stage, and does not require a wide range of search focus tables, only need to compare 0-3 frames to find the best focal length, complete the focus, improve the focus speed, and provide a photo for the user. Convenience.
  • FIG. 1 is a flow chart of a preferred embodiment of a focus method based on a mobile terminal distance sensor of the present invention.
  • FIG. 2 is a schematic diagram of a correspondence table between a distance sensor position and a motor trimming range according to an application example of a focus method of a mobile terminal distance sensor according to the present invention.
  • FIG. 3 is a flow chart of an application embodiment of a focus method based on a mobile terminal distance sensor of the present invention.
  • FIG. 4 is a functional block diagram of a preferred embodiment of a focus system based on a mobile terminal distance sensor of the present invention.
  • a focusing method based on a distance sensor of a mobile terminal according to the first embodiment of the present invention, as shown in FIG. 1, includes:
  • Step S100 The mobile terminal detects that the camera function is activated, and the distance sensor acquires the distance between the current camera and the object to be photographed and stores it.
  • a distance sensor is introduced in the mobile terminal, and the distance sensor needs to be located in the same plane as the image sensor. The goal is to ensure that the distance sensor and image sensor are consistent with each other.
  • the mobile terminal pre-registers a new driving device, that is, pre-registers the driving distance sensor in the system, and the specific method is: Linux
  • the system allows new new devices to be added by bus matching the driver device. Therefore, the device of the present invention is registered as a misc on the iic bus when registering. Equipment.
  • Device registration at bus probe misc_register(&stmvl6180_ranging_dev) . Prepare for the algorithm to obtain distance information in the future.
  • the specific distance acquisition method is: opening the newly registered device through the device node and passing the ioctl To get the current distance information.
  • the distance sensor is mounted in parallel with the image sensor, and is provided with a transmitting laser device and a receiving laser device.
  • the infrared device emits a laser beam, and the current distance is calculated and stored by the difference between transmission and reception.
  • step S100 is further included before;
  • Step S1 preset and store a correspondence table between the distance sensor and the object to be photographed and the motor focus trimming range.
  • a motor operates at a maximum current of 100 mA
  • 227+/-5 is 22.16+/-1.11 mA
  • the motor motion is specifically driven by adjusting the motor drive current.
  • Step S200 The distance sensor determines whether the current distance and the distance between the last distance sensor and the object to be photographed change.
  • step S200 further includes:
  • step S201 if the distance does not change, the control motor does not move at the current position.
  • the distance sensor acquires the current object distance and determines the distance from the previously stored object, and whether the distance changes. If the distance of the object to be photographed is still the original position, the original motor position is directly used for shooting, thereby saving. time.
  • Step S300 If the detected distance changes, the pre-stored focus fine-tuning range table is obtained according to the current distance to obtain the fine adjustment range of the motor, the motor is controlled to move within the fine adjustment range, and the image is acquired in real time.
  • step S300 specifically includes:
  • Step S301 If a distance is detected to be changed, obtain a current distance between the distance sensor and the object to be photographed;
  • Step S302 Query a pre-stored focus fine adjustment range table according to the current distance, and obtain a fine adjustment range of the motor;
  • Step S303 Control the motor to move within the fine adjustment range, and collect images in real time.
  • the detected distance changes, and the current distance between the current distance sensor and the object to be photographed is obtained, for example, 230 cm.
  • query the table shown in Figure 2 get the motor's focus fine-tuning range is 400 ( +/- ) 5code range, that is, the motor's focus fine-tuning range is 395-405code Within the scope.
  • the control motor moves within the range of 395-405code and captures and stores images of the motor moving in different positions in real time.
  • Step S400 Obtaining the focus value of the acquired image when the motor moves at different positions within the fine adjustment range, and controlling the motor to move to the position with the largest focus value to complete the focus.
  • step S400 specifically includes:
  • Step S401 Acquire a focus value of an image collected by the motor at different positions within the fine adjustment range and store the focus value;
  • Step S402 comparing the focus value to obtain a position when the focus value is maximum
  • Step S403 Control the motor to move to the position with the largest focus value to complete the focus.
  • the focus value of the image of the motor at different positions that is, the FV value
  • the current FV is determined.
  • the value is the position with the largest FV value
  • the specific FV value is obtained by the set focus algorithm, FV The larger the value, the clearer the image.
  • the invention also provides an application embodiment of a focusing method based on a distance sensor of a mobile terminal, as shown in FIG. 3 As shown, the method includes the steps of:
  • Step S10 the motor control thread is turned on, and then step S20 and step S30 are performed;
  • Step S20 motor initialization
  • Step S30 reading the current location information, and then performing step S40;
  • Step S40 obtaining a location, and then performing step S50;
  • Step S50 determining whether the location changes, if it is performing step S60, if not executing step S30;
  • Step S60 setting a fine adjustment range according to the position information, and then performing step S70;
  • Step S70 determining whether the maximum FV value in the current fine adjustment range is reached, if the step S91 is performed If not, perform step S80;
  • Step S80 controlling the motor to move, and then performing step S90;
  • Step S90 acquiring an image, and then performing step S70;
  • Step S91 the movement completes the focus end.
  • the present invention provides a focusing method based on a distance sensor of a mobile terminal.
  • it is determined whether the distance between the current lens and the object changes. If there is no change, the current motor position is maintained and no adjustment is required. If a change occurs, the preset fine adjustment range is found according to the current position, the control motor is moved within the fine adjustment range, the image of the current position is obtained, and the current The FV value, which obtains the maximum FV distance in the FV value within the fine adjustment range, completes the focus, and improves the focusing speed during shooting.
  • the present invention also provides a focusing system based on a distance sensor of a mobile terminal, as shown in FIG. 4 .
  • the system includes:
  • Detection and acquisition module 510 The mobile terminal detects that the camera function is activated, and the distance sensor acquires the distance between the current camera and the object to be photographed and stores it; as described above.
  • Judgment module 520 For the distance sensor to determine whether the current distance and the distance between the last distance sensor and the object to be photographed change; specifically as described above.
  • Query and image acquisition module 530 For detecting the change of the distance, querying the pre-stored focus fine adjustment range table according to the current distance to obtain the fine adjustment range of the motor, controlling the motor to move within the fine adjustment range, and acquiring the image in real time; as described above.
  • Acquisition and Control Module 540 For obtaining the focus value of the acquired image when the motor moves at different positions within the fine adjustment range, and controlling the motor to move to the position with the largest focus value to complete the focus; as described above.
  • the focus system based on a mobile terminal distance sensor, wherein the system further comprises:
  • the preset and storage module is configured to preset and store a correspondence table between the distance sensor and the object to be photographed and the motor focus trimming range; as described above.
  • the focus system of the mobile terminal distance sensor wherein the determining module further comprises:
  • the focus system of the mobile terminal distance sensor wherein the query and image acquisition module specifically includes:
  • the detecting and acquiring unit is configured to acquire a current distance between the distance sensor and the object to be photographed if the detected distance changes; as described above.
  • the query unit is configured to query the pre-stored focus fine adjustment range table according to the current distance to obtain a fine adjustment range of the motor; as described above.
  • the focus system of the mobile terminal distance sensor wherein the acquisition and control module specifically includes:
  • Acquiring and storing unit for acquiring the focus value of the image acquired by the motor at different positions within the fine adjustment range and storing; as described above.
  • a comparison unit for comparing the focus value to obtain a position at which the focus value is maximum; as described above.
  • the control unit is configured to control the motor to move to the position with the largest focus value to complete the focus; as described above.
  • the present invention provides a focusing method and a focusing system based on a distance sensor of a mobile terminal, the method comprising the steps of: detecting that the mobile terminal activates the camera function, and the distance sensor acquires the distance between the current camera and the object to be photographed and stores The distance sensor determines whether the current distance and the distance between the last distance sensor and the object to be photographed change; if the distance is detected to change, the pre-stored focus fine adjustment range table is obtained according to the current distance to obtain the fine adjustment range of the motor, and the control motor is Move within the fine-tuning range and acquire images in real time; obtain the focus value of the acquired image when the motor moves at different positions within the fine-tuning range, control the motor to move to the position with the largest focus value, and complete the focus.
  • the invention can realize the object not moving and does not focus.
  • the focus is triggered immediately.
  • the focus adjustment range has been set in the debug phase, there is no need to search the focus table in a wide range, just need to compare 0-3 frames can find the best focal length, complete the focus, improve the focus speed, and provide convenience for the user to take pictures.

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Optics & Photonics (AREA)
  • Engineering & Computer Science (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Automatic Focus Adjustment (AREA)
  • Studio Devices (AREA)
  • Focusing (AREA)

Abstract

本发明公开了一种基于移动终端距离传感器的对焦方法及对焦系统,该方法包括:距离传感器获取当前摄像头与待拍摄物体的距离;判断两者之间的距离是否发生了变化;如果是,则根据当前距离获取马达的微调范围,根据微调范围控制马达移动,并实时采集图像;获取采集到的图像的聚焦值,将马达移动至聚焦值最大的位置完成对焦。

Description

一种基于移动终端距离传感器的对焦方法及对焦系统 技术领域
本发明涉及移动终端技术领域,尤其涉及一种基于移动终端距离传感器的对焦方法及对焦系统。
背景技术
随着移动通信的发展和人们生活水平的不断提高,各种移动终端如手机的使用越来越普及,手机已经成为人们生活中不可缺少的通讯交流工具。
传统的手机摄像头对焦算法是通过不停移动马达,获取不同马达位置时图像的聚焦值,也称为FV(focus value)值,来判断图像清晰程度,进行扫描之后判断出最佳马达位置,然后把马达移动到最清晰的位置。完成一次对焦动作。整个过程根据搜索的范围不同,帧率不同时间在0.5-2秒。特别是在暗处,由于光线不足,手机的曝光时间会相应增加,导致帧率变低后,对焦时间会更长。这个延时很可能让拍摄者失去捕捉“精彩瞬间”的机会。
现有技术中的对焦往往需要对整个对焦范围进行扫描,然后找到最清晰的点。由于整个搜索范围大,往往需要很多帧来分辨哪张最清晰。而在暗处环境下,由于曝光时间长,帧率低,对焦时间会拖到几秒,有时候由于图像不够亮或算法本身缺陷,可能导致最终的对焦失败。并且由于纯软件算法实现的对焦无法判断物体是否和镜头相当位置发生了改变,可能纯在反复对焦,或者物体移动了没有去做对焦的情况。
因此,现有技术还有待于改进和发展。
技术问题
本发明要解决的技术问题在于,针对现有技术的上述缺陷,提供一种基于移动终端距离传感器的对焦方法及对焦系统,旨在解决现有技术中用户拍照对焦时间过久或是反复对焦,延迟拍摄时间的缺陷。
技术解决方案
一种基于移动终端距离传感器的对焦方法,其中,所述方法包括步骤:
预先设置并存储距离传感器与待拍摄物体的距离和马达的对焦微调范围的对应表;
检测到移动终端启动照相功能时,所述距离传感器获取当前摄像头与所述待拍摄物体的距离并存储;
判断所述距离传感器当前获取到的距离与所述距离传感器上一次获取到的距离是否发生变化;
如果判定距离发生了变化,则获取所述距离传感器与所述待拍摄物体的当前距离;
根据所述当前距离获取所述马达的微调范围;
控制所述马达在所述微调范围内移动,并实时采集图像;
获取所述马达在所述微调范围内不同位置移动时的采集图像的聚焦值;以及
控制所述马达移动至聚焦值最大对应的位置,以完成对焦。
所述的基于移动终端距离传感器的对焦方法,其中所述判断所述距离传感器当前获取到的距离与所述距离传感器上一次获取到的距离是否发生变化的步骤之后,还包括:
如果判定距离没有发生变化,控制所述马达在当前位置不移动。
所述的基于移动终端距离传感器的对焦方法,其中所述获取所述马达在所述微调范围内不同位置移动时的采集图像的聚焦值的步骤具体包括:
获取所述马达在所述微调范围内不同位置采集图像的聚焦值并存储;
对比所有聚焦值,并获取所述聚焦值最大时的位置。
所述的基于移动终端距离传感器的对焦方法,其中所述根据所述当前距离获取所述马达的微调范围的步骤包括:
根据所述当前距离查询预先存储的对焦微调范围表,以获取马达的微调范围。
一种基于移动终端距离传感器的对焦方法,其包括:
检测到移动终端启动照相功能时,距离传感器获取当前摄像头与待拍摄物体的距离并存储;
判断所述距离传感器当前获取的距离与所述距离传感器上一次获取的距离是否发生变化;
如果判定距离发生了变化,则根据当前距离查询预先存储的对焦微调范围表获取马达的微调范围,控制马达在所述微调范围内移动,并实时采集图像;
获取所述马达在所述微调范围内的不同位置移动时的采集图像的聚焦值,控制所述马达移动至聚焦值最大的位置,以完成对焦。
所述的基于移动终端距离传感器的对焦方法,其中所述检测到移动终端启动照相功能时,距离传感器获取当前摄像头与待拍摄物体的距离并存储的步骤之前,还包括:
预先设置并存储所述距离传感器与所述待拍摄物体的距离和所述马达对焦微调范围的对应表。
所述的基于移动终端距离传感器的对焦方法,其中所述判断所述距离传感器当前获取的距离与所述距离传感器上一次获取的距离是否发生变化的步骤之后,还包括:
如果判定距离没有发生变化,控制所述马达在当前位置不移动。
所述的基于移动终端距离传感器的对焦方法,其中所述如果判定距离发生了变化,则根据当前距离查询预先存储的对焦微调范围表获取马达的微调范围,控制马达在所述微调范围内移动,并实时采集图像的步骤具体包括:
如果判定距离发生了变化,获取所述距离传感器与所述待拍摄物体的当前距离;
根据所述当前距离查询预先存储的对焦微调范围表,获取所述马达的微调范围;以及
控制所述马达在所述微调范围内移动,并实时采集图像。
所述的基于移动终端距离传感器的对焦方法,其中所述获取马达在所述微调范围内的不同位置移动时的采集图像的聚焦值,控制马达移动至聚焦值最大的位置,以完成对焦的步骤具体包括:
获取所述马达在所述微调范围内不同位置采集到的图像的聚焦值并存储;
对比所有聚焦值,并获取聚焦值最大时的位置;
控制所述马达移动至所述聚焦值最大时的位置,以完成对焦。
一种基于移动终端距离传感器的对焦系统,其包括:
检测与获取模块,用于检测到移动终端启动照相功能时,距离传感器获取当前摄像头与待拍摄物体的距离并存储;
判断模块,用于判断所述距离传感器当前获取的距离与所述距离传感器上一次获取的距离是否发生变化;
查询与图像采集模块,用于如果判定距离发生了变化,则根据当前距离查询预先存储的对焦微调范围表获取马达的微调范围,并控制马达在微调范围内移动,并实时采集图像;
获取与控制模块,用于获取所述马达在所述微调范围内不同位置移动时的采集图像的聚焦值,控制所述马达移动至聚焦值最大的位置,以完成对焦。
所述的基于移动终端距离传感器的对焦系统,其还包括:
预先设置与存储模块,用于预先设置并存储所述距离传感器与所述待拍摄物体的距离和所述马达对焦微调范围的对应表。
所述的基于移动终端距离传感器的对焦系统,其中所述判断模块还包括:
判断与控制单元,用于如果判定距离没有发生变化,控制所述马达在当前位置不移动。
所述的基于移动终端距离传感器的对焦系统,其中所述查询与图像采集模块具体包括:
检测与获取单元,用于如果判定距离发生了变化,获取所述距离传感器与所述待拍摄物体的当前距离;
查询单元,用于根据所述当前距离查询预先存储的对焦微调范围表,获取所述马达的微调范围;
控制与采集单元,用于控制所述马达在所述微调范围内移动,并实时采集图像。
所述的基于移动终端距离传感器的对焦系统,其中所述获取与控制模块具体包括:
获取与存储单元,用于获取所述马达在所述微调范围内不同位置的采集图像的聚焦值并存储;
对比单元,用于对比所有聚焦值,并获取聚焦值最大时的位置;
控制单元,用于控制所述马达移动至所述聚焦值最大时的位置,以完成对焦。
一种存储介质,存储有处理器可执行指令,其中该处理器可执行指令用于让处理器完成以下操作:
检测到移动终端启动照相功能时,距离传感器获取当前摄像头与待拍摄物体的距离并存储;
判断所述距离传感器当前获取的距离与所述距离传感器上一次获取的距离是否发生变化;
如果判定距离发生了变化,则根据当前距离查询预先存储的对焦微调范围表获取马达的微调范围,并控制马达在所述微调范围内移动,并实时采集图像;
获取所述马达在所述微调范围内的不同位置移动时的采集图像的聚焦值,控制所述马达移动至聚焦值最大的位置,以完成对焦。
所述的存储介质,其中所述存储介质内存储的处理器可执行指令,在让处理器执行检测到移动终端启动照相功能时,距离传感器获取当前摄像头与待拍摄物体的距离并存储的操作之前,还用于让处理器完成以下操作:
预先设置并存储所述距离传感器与所述待拍摄物体的距离和所述马达对焦微调范围的对应表。
所述的存储介质,其中所述存储介质内存储的处理器可执行指令,在让处理器完成判断所述距离传感器当前获取的距离与所述距离传感器上一次获取的距离是否发生变化的操作之后,还用于让处理器完成以下操作:
如果判定距离没有发生变化,控制所述马达在当前位置不移动。
所述的存储介质,其中所述存储介质内存储的处理器可执行指令,在让处理器根据当前距离查询预先存储的对焦微调范围表获取马达的微调范围,控制马达在所述微调范围内移动,并实时采集图像时,让处理器完成以下操作:如果判定距离发生了变化,获取所述距离传感器与所述待拍摄物体的当前距离;
根据所述当前距离查询预先存储的对焦微调范围表,获取所述马达的微调范围;以及
控制所述马达在所述微调范围内移动,并实时采集图像。
所述的存储介质,其中所述存储介质内存储的处理器可执行指令,在让处理器获取马达在所述微调范围内的不同位置移动时的采集图像的聚焦值,控制马达移动至聚焦值最大的位置,以完成对焦时,让处理器完成以下操作:
获取所述马达在所述微调范围内不同位置采集到的图像的聚焦值并存储;
对比所有聚焦值,并获取聚焦值最大时的位置;
控制所述马达移动至所述聚焦值最大时的位置,以完成对焦。
有益效果
本发明提供了一种基于移动终端距离传感器的对焦方法及对焦系统,所述方法包括步骤:检测到移动终端启动照相功能,距离传感器获取当前摄像头与待拍摄物体的距离并存储;距离传感器判断当前距离与上一次距离传感器与待拍摄物体的距离是否发生变化;如果检测到距离发生了变化,则根据当前距离查询预先存储的对焦微调范围表获取马达的微调范围,控制马达在微调范围内移动,并实时采集图像;获取马达在微调范围内不同位置移动时的采集到的图像的聚焦值,控制马达移动至聚焦值最大的位置,完成对焦。本发明在能够实现物体不动,不进行对焦。物体发生相对移动,马上触发对焦。并且由于调试阶段已经设置好了对焦微调范围,并不需要大范围的搜索对焦表,仅仅需要对比0-3帧就能找到最佳的焦距,完成对焦,提高了对焦速度,为用户拍照提供了方便。
附图说明
图1是本发明的一种基于移动终端距离传感器的对焦方法的较佳实施例的流程图。
图2是本发明的一种基于移动终端距离传感器的对焦方法的一种应用实施例的距离传感器位置与马达微调范围的对应表示意图。
图3是本发明的一种基于移动终端距离传感器的对焦方法的一种应用实施例的流程图。
图4是本发明的一种基于移动终端距离传感器的对焦系统的较佳实施例的功能原理框图。
本发明的最佳实施方式
为使本发明的目的、技术方案及优点更加清楚、明确,以下参照附图并举实施例对本发明进一步详细说明。 应当理解,此处所描述的具体实施例仅仅用以解释本发明,并不用于限定本发明。
本发明第一实施例所述的一种基于移动终端距离传感器的对焦方法,如图 1 所示,包括:
步骤 S100 、检测到移动终端启动照相功能,距离传感器获取当前摄像头与待拍摄物体的距离并存储。
具体实施时,本发明中在移动终端中引入距离传感器,距离传感器需要和图像传感器位于同一个平面。目的是确保距离传感器和图像传感器相对与物体的距离保持一致。
具体的,移动终端预先注册新的驱动设备,即预先在系统中注册驱动距离传感器,具体方法为: Linux 系统允许通过 bus 匹配 driver device 的方式增加新的新的器件。因此本发明的设备注册时注册成一个在 iic 总线上的 misc 设备。具体方法在 probe 中 ret= i2c_add_driver(&stmvl6180_driver); i2c_register_board_info(1, &i2c_stmvl6180, 1); 这样把 stmv6180 设备注册到 iic 总线上。在总线 probe 的时候进行设备注册 misc_register(&stmvl6180_ranging_dev) 。为以后算法获取距离信息做好准备。
具体的距离获取方法为:通过设备结点的方式打开新注册的设备并且通过 ioctl 来获取当前的距离信息。具体如下 UCHAR cBuf[128] = '/dev/stmvl6180'; lSTMV6180 = open(cBuf, O_RDWR); 获取距离信息: ioctlerr=ioctl(lSTMV6180_HANDLE,VL6180_IOCTL_GETDATA, &distance); 通过以上的工作对焦算法就能够获取实时的距离信息。
距离传感器安装在平行与图像传感器的位置,设置有发射激光装置和接受激光装置。使用时发射红外装置会发出一束激光,通过发送和接受之间的差别来计算当前距离并进行存储。
具体地,所述步骤 S100 之前还包括 ;
步骤 S1 、预先设置并存储距离传感器与待拍摄物体的距离和马达对焦微调范围的对应表。
具体实施时,如图 2 所示,为本发明的距离传感器与待拍摄物体的距离和马达对焦微调范围的对应表的一种实施例,其中当距离传感器与物体之间的距离超过 580cm 时,对焦微调范围的调整范围为在 227 ( +/- ) 5code 的范围内,而当距离传感器与物体之间的距离小于 110cm 时,对焦微调范围的调整范围为 450code ,具体地,一般常用 code 做他单位,这个值我解释下,是一个比例值,具体是一个 10 位的 dac 电流比例,大小在 0-1023 ( 0 对应 10 位全 0 , 1023 对应 10 位全 1 )之间。一般一个马达工作最大电流在 100mA ,那么本发明中的 227 指的是马达电流在 100ma * 227/1024=22.16mA 那么 227+/-5 就是 22.16+/-1.11 mA ,当然不同的马达驱动电流是不同的,其他马达可能是 120mA 的最大电流,那么按这个比例,电流计算也会不同。本发明中具体是通过调整马达驱动电流而驱动马达运动。
步骤 S200 、距离传感器判断当前距离与上一次距离传感器与待拍摄物体的距离是否发生变化。
具体实施时,所述步骤 S200 还包括:
所述步骤 S201 、如果距离没有发生变化,控制马达在当前位置不移动。
具体地,距离传感器获取当前物体距离,并与之前存储的物体距离进行判断,是否距离发生变化,如果要拍摄的物体的距离仍是原来的位置,则直接用原来的马达位置进行拍摄,节省了时间。
步骤 S300 、如果检测到距离发生了变化,则根据当前距离查询预先存储的对焦微调范围表获取马达的微调范围,控制马达在微调范围内移动,并实时采集图像。
具体实施时,所述步骤 S300 具体包括:
步骤 S301 、如果检测到距离发生了变化,获取距离传感器与待拍摄物体的当前距离;
步骤 S302 、根据当前距离查询预先存储的对焦微调范围表,获取马达的微调范围;
步骤 S303 、控制马达在微调范围内移动,并实时采集图像。
具体地,检测到距离发生了变化,获取当前距离传感器与待拍摄物体的当前距离,比如说为 230cm ,查询如图 2 所示的表格中,获取马达的对焦微调范围为 400 ( +/- ) 5code 的范围,即马达的对焦微调范围为 395-405code 范围内。控制马达在 395-405code 范围内移动,并实时采集马达移动不同位置时的图像并存储。
步骤 S400 、获取马达在微调范围内不同位置移动时的采集到的图像的聚焦值,控制马达移动至聚焦值最大的位置,完成对焦。
具体实施时,步骤 S400 具体包括:
步骤 S401 、获取马达在微调范围内不同位置采集到的图像的聚焦值并存储;
步骤 S402 、对比聚焦值获取聚焦值最大时的位置;
步骤 S403 、控制马达移动至聚焦值最大的位置,完成对焦。
具体地,当马达在微调范围内移动时,获取马达在不同位置的图像的聚焦值,即 FV 值,判断当前的 FV 值是否为 FV 值最大的位置,具体的 FV 值的通过设置的对焦算法获取, FV 值越大图像越清晰。当获取到最大的聚焦值的位置后,将马达移动至聚焦值最大的位置,完成对焦。此时可进行照片拍摄,可获得最佳的照片质量。
本发明还提供了一种基于移动终端距离传感器的对焦方法的应用实施例,如图 3 所示,所述方法包括步骤:
步骤 S10 、马达控制线程开启,之后执行步骤 S20 和步骤 S30 ;
步骤 S20 、马达初始化;
步骤 S30 、读取当前位置信息,之后执行步骤 S40 ;
步骤 S40 、获取位置,之后执行步骤 S50 ;
步骤 S50 、判断位置是否发生变化,如果是执行步骤 S60 ,如果否执行步骤 S30 ;
步骤 S60 、根据位置信息设置微调范围,之后执行步骤 S70 ;
步骤 S70 、判断是否到达当前微调范围中的最大 FV 值,如果是执行步骤 S91 ,如果否执行步骤 S80 ;
步骤 S80 、控制马达移动,之后执行步骤 S90 ;
步骤 S90 、获取图像,之后执行步骤 S70 ;
步骤 S91 、移动完成对焦结束。
由上述实施例可知,本发明提供了一种基于移动终端距离传感器的对焦方法,本发明中判断当前镜头和物体的距离是否发生变化。如果没有变化则保持当前马达位置,不需要进行调整。如果发生变化,则根据当前位置找到预设的微调范围,控制马达在微调范围内移动,获取当前位置的图像,得出当前的 FV 值,在微调范围内的 FV 值中获取最大的 FV 距离,完成对焦,提高了拍摄过程的对焦速度。
基于上述实施例,本发明还提供一种基于移动终端距离传感器的对焦系统,如图 4 所示,系统包括:
检测与获取模块 510 ,检测到移动终端启动照相功能,距离传感器获取当前摄像头与待拍摄物体的距离并存储;具体如上所述。
判断模块 520 ,用于距离传感器判断当前距离与上一次距离传感器与待拍摄物体的距离是否发生变化;具体如上所述。
查询与图像采集模块 530 ,用于如果检测到距离发生了变化,则根据当前距离查询预先存储的对焦微调范围表获取马达的微调范围,控制马达在微调范围内移动,并实时采集图像;具体如上所述。
获取与控制模块 540 ,用于获取马达在微调范围内不同位置移动时的采集到的图像的聚焦值,控制马达移动至聚焦值最大的位置,完成对焦;具体如上所述。
所述的基于移动终端距离传感器的对焦系统,其中,所述系统还包括:
预先设置与存储模块,用于预先设置并存储距离传感器与待拍摄物体的距离和马达对焦微调范围的对应表;具体如上所述。
所述的基于移动终端距离传感器的对焦系统,其中,所述判断模块还包括:
判断与控制单元,用于如果距离没有发生变化,控制马达在当前位置不移动;具体如上所述。
所述的基于移动终端距离传感器的对焦系统,其中,所述查询与图像采集模块具体包括:
检测与获取单元,用于如果检测到距离发生了变化,获取距离传感器与待拍摄物体的当前距离;具体如上所述。
查询单元,用于根据当前距离查询预先存储的对焦微调范围表,获取马达的微调范围;具体如上所述。
控制与采集单元,用于控制马达在微调范围内移动,并实时采集图像;具体如上所述。
所述的基于移动终端距离传感器的对焦系统,其中,所述获取与控制模块具体包括:
获取与存储单元,用于获取马达在微调范围内不同位置采集到的图像的聚焦值并存储;具体如上所述。
对比单元,用于对比聚焦值获取聚焦值最大时的位置;具体如上所述。
控制单元,用于控制马达移动至聚焦值最大的位置,完成对焦;具体如上所述。
综上所述,本发明提供了一种基于移动终端距离传感器的对焦方法及对焦系统,所述方法包括步骤:检测到移动终端启动照相功能,距离传感器获取当前摄像头与待拍摄物体的距离并存储;距离传感器判断当前距离与上一次距离传感器与待拍摄物体的距离是否发生变化;如果检测到距离发生了变化,则根据当前距离查询预先存储的对焦微调范围表获取马达的微调范围,控制马达在微调范围内移动,并实时采集图像;获取马达在微调范围内不同位置移动时的采集到的图像的聚焦值,控制马达移动至聚焦值最大的位置,完成对焦。本发明在能够实现物体不动,不进行对焦。物体发生相对移动,马上触发对焦。并且由于调试阶段已经设置好了对焦微调范围,并不需要大范围的搜索对焦表,仅仅需要对比 0-3 帧就能找到最佳的焦距,完成对焦,提高了对焦速度,为用户拍照提供了方便。
应当理解的是,本发明的应用不限于上述的举例,对本领域普通技术人员来说,可以根据上述说明加以改进或变换,所有这些改进和变换都应属于本发明所附权利要求的保护范围。

Claims (19)

  1. 一种基于移动终端距离传感器的对焦方法,其包括:
    预先设置并存储距离传感器与待拍摄物体的距离和马达的对焦微调范围的对应表;
    检测到移动终端启动照相功能时,所述距离传感器获取当前摄像头与所述待拍摄物体的距离并存储;
    判断所述距离传感器当前获取到的距离与所述距离传感器上一次获取到的距离是否发生变化;
    如果判定距离发生了变化,则获取所述距离传感器与所述待拍摄物体的当前距离;
    根据所述当前距离获取所述马达的微调范围;
    控制所述马达在所述微调范围内移动,并实时采集图像;
    获取所述马达在所述微调范围内不同位置移动时的采集图像的聚焦值;以及
    控制所述马达移动至聚焦值最大对应的位置,以完成对焦。
  2. 根据权利要求1所述的基于移动终端距离传感器的对焦方法,其中所述判断所述距离传感器当前获取到的距离与所述距离传感器上一次获取到的距离是否发生变化的步骤之后,还包括:
    如果判定距离没有发生变化,控制所述马达在当前位置不移动。
  3. 根据权利要求1所述的基于移动终端距离传感器的对焦方法,其中所述获取所述马达在所述微调范围内不同位置移动时的采集图像的聚焦值的步骤具体包括:
    获取所述马达在所述微调范围内不同位置采集图像的聚焦值并存储;
    对比所有聚焦值,并获取所述聚焦值最大时的位置。
  4. 根据权利要求1所述的基于移动终端距离传感器的对焦方法,其中所述根据所述当前距离获取所述马达的微调范围的步骤包括:
    根据所述当前距离查询预先存储的对焦微调范围表,以获取马达的微调范围。
  5. 一种基于移动终端距离传感器的对焦方法,其包括:
    检测到移动终端启动照相功能时,距离传感器获取当前摄像头与待拍摄物体的距离并存储;
    判断所述距离传感器当前获取的距离与所述距离传感器上一次获取的距离是否发生变化;
    如果判定距离发生了变化,则根据当前距离查询预先存储的对焦微调范围表获取马达的微调范围,控制所述马达在所述微调范围内移动,并实时采集图像;以及
    获取所述马达在所述微调范围内的不同位置移动时的采集图像的聚焦值,控制所述马达移动至聚焦值最大的位置,以完成对焦。
  6. 根据权利要求5所述的基于移动终端距离传感器的对焦方法,其中所述检测到移动终端启动照相功能时,距离传感器获取当前摄像头与待拍摄物体的距离并存储的步骤之前,还包括:
    预先设置并存储所述距离传感器与所述待拍摄物体的距离和所述马达对焦微调范围的对应表。
  7. 根据权利要求5所述的基于移动终端距离传感器的对焦方法,其中所述判断所述距离传感器当前获取的距离与所述距离传感器上一次获取的距离是否发生变化的步骤之后,还包括:
    如果判定距离没有发生变化,控制所述马达在当前位置不移动。
  8. 根据权利要求5所述的基于移动终端距离传感器的对焦方法,其中所述如果判定距离发生了变化,则根据当前距离查询预先存储的对焦微调范围表获取马达的微调范围,控制马达在所述微调范围内移动,并实时采集图像的步骤具体包括:
    如果判定距离发生了变化,获取所述距离传感器与所述待拍摄物体的当前距离;
    根据所述当前距离查询预先存储的对焦微调范围表,获取所述马达的微调范围;以及
    控制所述马达在所述微调范围内移动,并实时采集图像。
  9. 根据权利要求5所述的基于移动终端距离传感器的对焦方法,其中所述获取马达在所述微调范围内的不同位置移动时的采集图像的聚焦值,控制马达移动至聚焦值最大的位置,以完成对焦的步骤具体包括:
    获取所述马达在所述微调范围内不同位置采集到的图像的聚焦值并存储;
    对比所有聚焦值,并获取聚焦值最大时的位置;以及
    控制所述马达移动至所述聚焦值最大时的位置,以完成对焦。
  10. 一种基于移动终端距离传感器的对焦系统,其包括:
    检测与获取模块,用于检测到移动终端启动照相功能时,距离传感器获取当前摄像头与待拍摄物体的距离并存储;
    判断模块,用于判断所述距离传感器当前获取的距离与所述距离传感器上一次获取的距离是否发生变化;
    查询与图像采集模块,用于如果判定距离发生了变化,则根据当前距离查询预先存储的对焦微调范围表获取马达的微调范围,并控制所述马达在微调范围内移动,并实时采集图像;以及
    获取与控制模块,用于获取所述马达在所述微调范围内的不同位置移动时的采集图像的聚焦值,控制所述马达移动至聚焦值最大的位置,以完成对焦。
  11. 根据权利要求10所述的基于移动终端距离传感器的对焦系统,其还包括:
    预先设置与存储模块,用于预先设置并存储所述距离传感器与所述待拍摄物体的距离和所述马达对焦微调范围的对应表。
  12. 根据权利要求10所述的基于移动终端距离传感器的对焦系统,其中所述判断模块还包括:
    判断与控制单元,用于如果判定距离没有发生变化,控制所述马达在当前位置不移动。
  13. 根据权利要求10所述的基于移动终端距离传感器的对焦系统,其中所述查询与图像采集模块具体包括:
    检测与获取单元,用于如果判定距离发生了变化,获取所述距离传感器与所述待拍摄物体的当前距离;
    查询单元,用于根据所述当前距离查询预先存储的对焦微调范围表,获取所述马达的微调范围;以及
    控制与采集单元,用于控制所述马达在所述微调范围内移动,并实时采集图像。
  14. 根据权利要求10所述的基于移动终端距离传感器的对焦系统,其中所述获取与控制模块具体包括:
    获取与存储单元,用于获取所述马达在所述微调范围内不同位置的采集图像的聚焦值并存储;
    对比单元,用于对比所有聚焦值,并获取聚焦值最大时的位置;以及
    控制单元,用于控制所述马达移动至所述聚焦值最大时的位置,以完成对焦。
  15. 一种存储介质,存储有处理器可执行指令,其中该处理器可执行指令用于让处理器完成以下操作:
    检测到移动终端启动照相功能时,距离传感器获取当前摄像头与待拍摄物体的距离并存储;
    判断所述距离传感器当前获取的距离与所述距离传感器上一次获取的距离是否发生变化;
    如果判定距离发生了变化,则根据当前距离查询预先存储的对焦微调范围表获取马达的微调范围,并控制马达在所述微调范围内移动,并实时采集图像;以及
    获取所述马达在所述微调范围内的不同位置移动时的采集图像的聚焦值,控制所述马达移动至聚焦值最大的位置,以完成对焦。
  16. 如权利要求15所述的存储介质,其中所述存储介质内存储的处理器可执行指令,在让处理器执行检测到移动终端启动照相功能时,距离传感器获取当前摄像头与待拍摄物体的距离并存储的操作之前,还用于让处理器完成以下操作:
    预先设置并存储所述距离传感器与所述待拍摄物体的距离和所述马达对焦微调范围的对应表。
  17. 如权利要求15所述的存储介质,其中所述存储介质内存储的处理器可执行指令,在让处理器完成判断所述距离传感器当前获取的距离与所述距离传感器上一次获取的距离是否发生变化的操作之后,还用于让处理器完成以下操作:
    如果判定距离没有发生变化,控制所述马达在当前位置不移动。
  18. 如权利要求15所述的存储介质,其中所述存储介质内存储的处理器可执行指令,在让处理器根据当前距离查询预先存储的对焦微调范围表获取马达的微调范围,控制马达在所述微调范围内移动,并实时采集图像时,让处理器完成以下操作:如果判定距离发生了变化,获取所述距离传感器与所述待拍摄物体的当前距离;
    根据所述当前距离查询预先存储的对焦微调范围表,获取所述马达的微调范围;以及
    控制所述马达在所述微调范围内移动,并实时采集图像。
  19. 如权利要求15所述的存储介质,其中所述存储介质内存储的处理器可执行指令,在让处理器获取马达在所述微调范围内的不同位置移动时的采集图像的聚焦值,控制马达移动至聚焦值最大的位置,以完成对焦时,让处理器完成以下操作:
    获取所述马达在所述微调范围内不同位置采集到的图像的聚焦值并存储;
    对比所有聚焦值,并获取聚焦值最大时的位置;以及
    控制所述马达移动至所述聚焦值最大时的位置,以完成对焦。
PCT/CN2015/093338 2015-04-27 2015-10-30 一种基于移动终端距离传感器的对焦方法及对焦系统 WO2016173225A1 (zh)

Priority Applications (1)

Application Number Priority Date Filing Date Title
US15/308,600 US20170257555A1 (en) 2015-04-27 2015-10-30 Focusing method and focusing system based on a distance sensor of mobile terminal

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201510203711.3 2015-04-27
CN201510203711.3A CN104796616A (zh) 2015-04-27 2015-04-27 一种基于移动终端距离传感器的对焦方法及对焦系统

Publications (1)

Publication Number Publication Date
WO2016173225A1 true WO2016173225A1 (zh) 2016-11-03

Family

ID=53561105

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2015/093338 WO2016173225A1 (zh) 2015-04-27 2015-10-30 一种基于移动终端距离传感器的对焦方法及对焦系统

Country Status (3)

Country Link
US (1) US20170257555A1 (zh)
CN (1) CN104796616A (zh)
WO (1) WO2016173225A1 (zh)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107179596A (zh) * 2017-05-24 2017-09-19 广东欧珀移动通信有限公司 对焦方法及相关产品
US11184518B2 (en) 2017-06-16 2021-11-23 Guangdong Oppo Mobile Telecommunications Corp., Ltd. Focusing method using compensated FV value, storage medium and mobile phone for performing the same

Families Citing this family (17)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104796616A (zh) * 2015-04-27 2015-07-22 惠州Tcl移动通信有限公司 一种基于移动终端距离传感器的对焦方法及对焦系统
JP6525813B2 (ja) * 2015-08-21 2019-06-05 キヤノン株式会社 撮像装置、制御方法、プログラム及び記憶媒体
CN105227840B (zh) * 2015-10-08 2019-04-19 Oppo广东移动通信有限公司 对焦方法和装置
CN105657278A (zh) * 2016-02-29 2016-06-08 广东欧珀移动通信有限公司 控制方法、控制装置及电子装置
CN105721777B (zh) * 2016-03-15 2020-04-17 惠州Tcl移动通信有限公司 一种实现精确对焦的拍摄装置及其方法
CN106248681A (zh) * 2016-07-18 2016-12-21 南通大学 基于机器视觉的立体对象多类缺陷检测装置及方法
CN106851097B (zh) * 2017-01-20 2019-07-16 深圳铂睿智恒科技有限公司 一种终端设备及其景深控制方法
CN107370950B (zh) * 2017-08-09 2019-10-22 Oppo广东移动通信有限公司 对焦处理方法、装置和移动终端
CN111133746A (zh) * 2017-09-30 2020-05-08 深圳传音通讯有限公司 摄像对焦方法、移动终端及计算机可读存储介质
CN108900805B (zh) * 2018-07-11 2021-01-12 长沙理工大学 一种基于计算机网络的艺术设计用品移动实时监控系统
US10951809B2 (en) * 2018-10-09 2021-03-16 The Boeing Company Adaptive camera control and calibration for dynamic focus
CN115379109A (zh) * 2018-11-20 2022-11-22 中山市远尚光电科技有限公司 一种具有自动测距功能长焦镜头测距的方法
CN109639963A (zh) * 2018-11-22 2019-04-16 深圳艺达文化传媒有限公司 自拍短视频焦距调整方法及相关产品
JP7467084B2 (ja) * 2019-11-26 2024-04-15 キヤノン株式会社 撮像装置、撮像装置の制御方法及びプログラム
CN111024242A (zh) * 2019-12-13 2020-04-17 浙江大立科技股份有限公司 红外热像仪及其连续自动对焦方法
CN111327802B (zh) * 2020-02-28 2022-05-03 浙江大华技术股份有限公司 图像清晰度的调整方法及装置、存储介质、电子装置
CN115150553B (zh) * 2022-06-27 2024-02-20 Oppo广东移动通信有限公司 对焦方法、装置、电子设备及存储介质

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6704054B1 (en) * 1998-10-23 2004-03-09 Olympus Corporation Autofocusing system
US20060109370A1 (en) * 2001-10-26 2006-05-25 Fuji Photo Film Co., Ltd. Device and method for autofocus adjustment
CN101672974A (zh) * 2008-09-13 2010-03-17 佳能株式会社 自动聚焦装置及其控制方法
CN104796616A (zh) * 2015-04-27 2015-07-22 惠州Tcl移动通信有限公司 一种基于移动终端距离传感器的对焦方法及对焦系统

Family Cites Families (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100462092B1 (ko) * 1998-11-12 2004-12-17 마쯔시다덴기산교 가부시키가이샤 스테핑 모터 제어 장치
JP3937678B2 (ja) * 2000-03-23 2007-06-27 コニカミノルタホールディングス株式会社 電子スチルカメラ
US6453124B2 (en) * 2000-03-27 2002-09-17 Minolta Co., Ltd. Digital camera
US6713985B2 (en) * 2000-03-31 2004-03-30 Canon Kabushiki Kaisha Drive control apparatus for stepping motor
CN1192520C (zh) * 2002-01-30 2005-03-09 华为技术有限公司 数字调节光发送模块及其调节方法
JP4775930B2 (ja) * 2004-02-20 2011-09-21 キヤノン株式会社 レンズ制御装置、撮像装置およびレンズ制御方法
JP4466400B2 (ja) * 2005-02-16 2010-05-26 カシオ計算機株式会社 撮像装置及びそのプログラム
US20070024228A1 (en) * 2005-07-28 2007-02-01 Matsushita Electric Industrial Co., Ltd. Stepping motor drive apparatus and control method thereof
US8457794B2 (en) * 2009-08-25 2013-06-04 Analog Devices, Inc. Multi-segment linearization of micro-actuator transfer functions
KR101907081B1 (ko) * 2011-08-22 2018-10-11 삼성전자주식회사 3차원 점군의 물체 분리 방법
JP2014044345A (ja) * 2012-08-28 2014-03-13 Ricoh Co Ltd 撮像装置
CN105334911A (zh) * 2014-06-26 2016-02-17 联想(北京)有限公司 一种电子设备
EP3151048A1 (en) * 2014-07-01 2017-04-05 FotoNation Limited An image capture device

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6704054B1 (en) * 1998-10-23 2004-03-09 Olympus Corporation Autofocusing system
US20060109370A1 (en) * 2001-10-26 2006-05-25 Fuji Photo Film Co., Ltd. Device and method for autofocus adjustment
CN101672974A (zh) * 2008-09-13 2010-03-17 佳能株式会社 自动聚焦装置及其控制方法
CN104796616A (zh) * 2015-04-27 2015-07-22 惠州Tcl移动通信有限公司 一种基于移动终端距离传感器的对焦方法及对焦系统

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107179596A (zh) * 2017-05-24 2017-09-19 广东欧珀移动通信有限公司 对焦方法及相关产品
CN107179596B (zh) * 2017-05-24 2019-09-17 Oppo广东移动通信有限公司 对焦方法及相关产品
US10630885B2 (en) 2017-05-24 2020-04-21 Guangdong Oppo Mobile Telecommunications Corp., Ltd. Focusing method and terminal
US11184518B2 (en) 2017-06-16 2021-11-23 Guangdong Oppo Mobile Telecommunications Corp., Ltd. Focusing method using compensated FV value, storage medium and mobile phone for performing the same

Also Published As

Publication number Publication date
CN104796616A (zh) 2015-07-22
US20170257555A1 (en) 2017-09-07

Similar Documents

Publication Publication Date Title
WO2016173225A1 (zh) 一种基于移动终端距离传感器的对焦方法及对焦系统
WO2017211054A1 (zh) 蓝牙智能手表、智能终端、及其spp远程控制拍照的方法和系统
WO2017133274A1 (zh) 一种终端屏幕亮度调节方法、系统及终端
WO2017124792A1 (zh) 动态捕捉人脸摄像的方法、系统及移动终端
WO2018053908A1 (zh) 一种双摄像头拍摄方法、系统及终端
WO2016002986A1 (ko) 시선 추적 장치 및 방법, 이를 수행하기 위한 기록매체
WO2018040444A1 (zh) 一种双摄像头拍照控制方法、拍照控制装置及终端
WO2021015505A1 (en) Foldable electronic device and photographing method using multiple cameras in foldable electronic device
WO2020171520A1 (en) Electronic device and method for controlling auto focusing thereof
CN107409173A (zh) 拍摄设备及其控制方法、装置
WO2016036059A1 (en) Photographing apparatus and photographing method
WO2017008320A1 (zh) 一种多晶硅薄膜的质量检测方法和系统
WO2019045517A1 (ko) 복수의 이미지 센서들의 동기화 제어 방법 및 이를 구현한 전자 장치
WO2017088487A1 (zh) 一种基于眼部识别的自动调整滚屏速度的方法及系统
WO2017088304A1 (zh) 基于调温器的变频空调控制装置、终端、系统及方法
EP3818689A1 (en) Method and electronic device for switching between first lens and second lens
WO2018145597A1 (zh) 基于移动终端的屏幕补光拍照方法及系统、移动终端
WO2015158284A1 (zh) 具有动态追拍功能的移动终端及其动态追拍方法
WO2019208915A1 (ko) 외부 장치의 자세 조정을 통해 복수의 카메라들을 이용하여 이미지를 획득하는 전자 장치 및 방법
WO2019114565A1 (zh) 空气调节器的调节方法、装置以及存储介质
WO2019000118A1 (zh) 工业流程的视觉检测方法、控制设备、系统及存储装置
WO2017215214A1 (zh) 调整相机焦距的方法、系统、及移动终端
WO2014073939A1 (en) Method and apparatus for capturing and displaying an image
WO2019054610A1 (ko) 복수의 이미지 센서들을 제어하기 위한 전자 장치 및 방법
WO2016129796A1 (ko) 컬러 테이블 생성 장치, 카메라 영상 보정/제어 장치 및 그 방법

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

Country of ref document: EP

Kind code of ref document: A1

WWE Wipo information: entry into national phase

Ref document number: 15308600

Country of ref document: US

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 15890600

Country of ref document: EP

Kind code of ref document: A1