IP Library Granted Patent US 7,738,027
Granted Patent B2
US 7,738,027 · App. 11/426,364 · Granted Jun 15, 2010

Auto focus method and electric device using the same

View Patent ↗
Loading inventors, assignments & file history…
Monitor This Case
Get email alerts when status or documents change.
Order Certified Copies
Most orders are placed with the USPTO same day — all within 24 business hours.
Order via The Patent Place →
Pre-filled with this patent's details
Quick Facts
Patent No.
US 7,738,027
App. No.
11/426,364
Granted
Jun 15, 2010
Kind
B2
Abstract

An auto focus method. A step length for a driving motor and a track length are defined and a storage medium is provided. The driving motor is shifted to an initial position and the storage medium is cleaned. The driving motor sequentially shifts a focus lens to a plurality of sampling positions based on the step length. A plurality of evaluation values corresponding to each sampling position and a plurality of step lengths corresponding to each evaluation value for a desired image are recorded in the storage medium. A weighted average is calculated according to the evaluation values and the step lengths recorded in the storage medium using a statistical formula. The driving motor shifts the focus lens to a focus position according to the weighted average.

Claims (119)

1. An auto focus method, comprising:

defining a step length for a driving motor and a track length and providing a storage medium;

shifting the driving motor to an initial position and cleaning the storage medium;

sequentially shifting a focus lens to a plurality of sampling positions based on the step length using the driving motor and recording a plurality of evaluation values respectively corresponding to each of the sampling positions and a plurality of step lengths respectively corresponding to each of the evaluation values for a desired image in the storage medium;

calculating a weighted average according to the evaluation values and the step lengths recorded in the storage medium using a statistical formula; and

shifting the focus lens to a focus position according to the weighted average using the driving motor;

wherein the statistical formula is:

L

_

=

j

=

1

n

L

i

×

M

i

i

=

1

n

M

i

,

where Mi represents an evaluation value and Li represents a step length at a corresponding sampling position.

2. The auto focus method as claimed in claim 1 , wherein shifting the focus lens to the sampling positions further comprises:

shifting the focus lens to a first sampling position according to step length using the driving motor and recording a first evaluation value corresponding to the first sampling position and a first step length based on the step length for the desired image in the storage medium;

determining whether the total shift distance is less than the track length;

if the total shift distance is less than the track length, shifting the focus lens to a subsequent sampling position using the driving motor and recording a subsequent evaluation value corresponding to the subsequent sampling position and a subsequent step length based on the step length for the desired image in the storage medium; and

if the total shift distance is not less than the track length, calculating the weighted average according to evaluation values and corresponding step lengths recorded in the storage medium using the statistical formula.

3. The auto focus method as claimed in claim 1 , wherein recording the evaluation values and calculating the weighted average further comprises:

recording a plurality of evaluation values corresponding to each sampling position for the desired image in the storage medium;

selecting a plurality of evaluation values and step lengths corresponding to a predetermined number of sampling positions prior to and following a sampling position, respectively, corresponding to the maximum evaluation value; and

calculating the weighted average according to the selected evaluation values and step lengths using the statistical formula.

4. An auto focus device, comprising:

a storage medium;

a lens module;

a driving motor, coupled to the lens module, shifting the lens module on a focus track based on a predetermined step length;

an image sensor, coupled to the lens module, obtaining evaluation values corresponding to a desired image through the lens module; and

a digital signal processing unit, coupled to the image sensor and the driving motor, shifting the driving motor to an initial position, cleaning the storage medium, sequentially shifting the lens module to a plurality of sampling positions based on the step length using the driving motor, recording a plurality of evaluation values respectively corresponding to each of the sampling positions and a plurality of step lengths respectively corresponding to each of the evaluation values for the desired image in the storage medium, calculating a weighted average according to the evaluation values and the step lengths recorded in the storage medium using a statistical formula, and shifting the focus lens to a focus position according to the weighted average using the driving motor;

wherein the statistical formula is:

L

_

=

j

=

1

n

L

i

×

M

i

i

=

1

n

M

i

,

where Mi represents an evaluation value and Li represents a step length at a corresponding sampling position.

5. The auto focus device as claimed in claim 4 , wherein the digital signal processing unit further shifts the lens module to a first sampling position according to step length using the driving motor, records a first evaluation value corresponding to the first sampling position and a first step length based on the step length for the desired image in the storage medium, determines whether the total shift distance is less than the focus track length, and if the total shift distance is less than the focus track length, shifts the lens module to a subsequent sampling position using the driving motor, records a subsequent evaluation value corresponding to the subsequent sampling position and a subsequent step length based on the step length for the desired image in the storage medium, and, if the total shift distance is not less than the focus track length, calculates the weighted average according to evaluation values and corresponding step lengths recorded in the storage medium using the statistical formula.

6. The auto focus device as claimed in claim 4 , wherein the digital signal processing unit further records a plurality of evaluation values corresponding to each sampling position for the desired image in the storage medium, selects a plurality of evaluation values and step lengths corresponding to a predetermined number of sampling positions prior to and following a sampling position, respectively, corresponding to the maximum evaluation value, and calculates the weighted average according to the selected evaluation values and step lengths using the statistical formula.

7. An auto focus method, comprising:

shifting a lens module to a plurality of sampling positions based on a predetermined step length using a driving motor;

obtaining a plurality of evaluation values respectively corresponding to each of the sampling positions;

recording the evaluation values and a plurality of step lengths respectively corresponding thereto to each of the evaluation values;

assigning a weighted value to each corresponding step length respectively according to the evaluation values; and

calculating the evaluation values and the weighted step lengths to obtain an optimum focus position;

wherein the optimum focus position is calculated using the following formula:

L

_

=

j

=

1

n

L

i

×

M

i

i

=

1

n

M

i

,

where Mi represents an evaluation value and Li represents a step length at a corresponding sampling position.

8. The auto focus method as claimed in claim 7 , wherein shifting the lens module to the sampling positions further comprises:

shifting the lens module to a first sampling position according to the step length using the driving motor and recording a first evaluation value corresponding to the first sampling position and a first step length based on the step length in the storage medium;

determining whether the total shift distance is less than the focus track length;

if the total shift distance is less than the focus track length, shifting the lens module to a subsequent sampling position using the driving motor and recording a subsequent evaluation value corresponding to the subsequent sampling position and a subsequent step length based on the step length in the storage medium; and

if the total shift distance is not less than the focus track length, calculating the weighted average according to evaluation values and corresponding step lengths recorded in the storage medium.

9. The auto focus method as claimed in claim 7 , wherein recording the evaluation values and calculating the weighted average further comprises:

recording the plurality of evaluation values corresponding to each sampling position in the storage medium;

selecting the plurality of evaluation values and step lengths corresponding to a predetermined number of sampling positions prior to and following a sampling position, respectively, corresponding to the maximum evaluation value; and

calculating the weighted average according to the selected evaluation values and step lengths.

Assignments (2)
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Aug 24, 2012
From: ASIA OPTICAL CO., INC.
To: ASIA OPTICAL INTERNATIONAL LTD.
Reel/Frame 028842/0918 →
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Jun 26, 2006
From: CHO, CHING-YUAN; CHEN, FENG-KENG
To: ASIA OPTICAL CO., INC.
Reel/Frame 017843/0927 →