自动对焦方法及装置

Automatic focusing method and device

Abstract

The invention discloses an automatic focusing method and device, and the method comprises the steps: obtaining a first image, which is obtained by imaging equipment and is corresponding to a lens position, of a lens at intervals of first step in a first direction, and determining the focusing direction and a first position of the lens according to the contrast ratio of the first image; obtaining a second image, which is obtained by imaging equipment and is corresponding to a lens position, of the lens at intervals of second step in a focusing direction from the first position, and determining a second position according to the contrast ratio of the second image; determining a focusing range which is a region taking the second position as the center; moving the lens in the focusing range, and enabling the lens position corresponding to the image, obtained by the imaging equipment, with the maximum contrast ratio of all lens positions in the focusing range to serve as the focusing position of the lens. The method can effectively improve the speed and accuracy of automatic focusing, and can quickly and accurately obtain the focusing position especially under the condition that the change of an imaging scene is not big.
一种自动对焦方法及装置,方法包括:获取镜头沿第一方向每移动第一步长成像设备所得到的对应所述镜头位置的第一图像,根据第一图像的对比度确定镜头的对焦方向和第一位置;获取镜头沿对焦方向从第一位置开始每移动第二步长成像设备所得到对应镜头位置的第二图像,根据第二图像的对比度确定第二位置;确定对焦范围,所述对焦范围为以第二位置为中心的区域;在对焦范围内移动镜头,将成像设备所获取的在所述对焦范围内各镜头位置中对比度最大的图像所对应的镜头位置确定为镜头的对焦位置。该方法可以有效提高自动对焦的速度和准确性,特别是在成像场景变化不是太大的情况下,可以快速、准确地获取到对焦位置。

Claims

Description

Topics

Download Full PDF Version (Non-Commercial Use)

Patent Citations (5)

    Publication numberPublication dateAssigneeTitle
    CN-101222585-AJuly 16, 2008佳能株式会社自动焦点对准方法和设备
    CN-101290464-AOctober 22, 2008展讯通信(上海)有限公司一种镜头自动对焦装置和自动对焦方法
    CN-101324693-ADecember 17, 2008展讯通信(上海)有限公司Optical zoom lens control device
    CN-1940699-AApril 04, 2007宾得株式会社具有自动聚焦系统的照相机
    JP-2014145808-AAugust 14, 2014Olympus Corp, オリンパス株式会社Imaging apparatus and method for controlling imaging apparatus

NO-Patent Citations (0)

    Title

Cited By (0)

    Publication numberPublication dateAssigneeTitle