# US 2013/0155266 A1 · Focus position estimation

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 2013/0155266 A1
- Document ID: US20130155266A1
- Status: Published application
- Kind: A1
- Application number: 13/327,335
- Filed: 2011-12-15
- Published: 2013-06-20
- Earliest claimed: 2011-12-15
- Assignees: Apple Inc.
- Inventors: Jianping Zhou
- Web page: https://patentgrep.com/patent/US20130155266A1

## CPC

- G02B 7/08: adapted to co-operate with a remote control mechanism
- G02B 27/64: Imaging systems using optical elements for stabilisation of the lateral and angular position of the image
- G03B 3/10: Power-operated focusing
- H04N 23/6812: {based on additional sensors, e.g. acceleration sensors}
- G02B: OPTICAL ELEMENTS, SYSTEMS OR APPARATUS
- G03B: APPARATUS 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 (optical parts of such apparatus G02B; photosensitive materials or processes for photographic purposes G03C; apparatus for processing exposed photographic materials G03D)
- H04N: PICTORIAL COMMUNICATION, e.g. TELEVISION

## Abstract

A method, apparatus and computer-readable storage medium computer-implemented method for lens position estimation. A drive current value may be received from a lens driver. An orientation of an electronic device may be detected using a motion sensor. A gravity vector may be determined by a processor based upon the orientation. A drive current offset may be determined based upon the gravity vector. The drive current value may be combined with the calculated drive current offset to create a normalized drive current. A lens position value associated with a camera lens of the electronic device may be computed based upon the normalized drive current.

## Claims

### Claim 1

A computer-implemented method for lens position estimation, the method comprising:
receiving a drive current value from a lens driver;
detecting an orientation of an electronic device using a motion sensor;
determining a gravity vector based upon the orientation;
determining a drive current offset based upon the gravity vector;
combining the drive current value with the calculated drive current offset to create a normalized drive current; and
computing a lens position value associated with a camera lens of the electronic device based upon the normalized drive current.

### Claim 2 (depends on 1)

The computer-implemented method of claim 1, wherein the motion sensor is one or more of an accelerometer, a gyroscope, or a compass.

### Claim 3 (depends on 1)

The computer-implemented method of claim 1, wherein the motion sensor is an accelerometer and the gravity vector is calculated using a low-pass filter of the accelerometer.

### Claim 4 (depends on 1)

The computer-implemented method of claim 1, wherein the drive current offset is selected from a plurality of predefined drive current offsets stored within a look-up table.

### Claim 5 (depends on 1)

The computer-implemented method of claim 1, further comprising:
providing the lens position value to an application via an application programming interface.

### Claim 6 (depends on 1)

The computer-implemented method of claim 1, further comprising:
calculating a distance between the electronic device and an object based upon the lens position value and a focal length of the camera lens.

### Claim 7 (depends on 1)

The computer-implemented method of claim 1, further comprising:
performing video stabilization based upon the lens position value.

### Claim 8

A physical computer-readable storage medium embodied with computer-executable instructions for causing a computer to execute instructions, the computer instructions comprising:
receiving a drive current value from a lens driver;
detecting an orientation of an electronic device using a motion sensor;
determining a gravity vector based upon the orientation;
determining a drive current offset based upon the gravity vector;
combining the drive current value with the calculated drive current offset to create a normalized drive current; and
computing a lens position value associated with a camera lens of the electronic device based upon the normalized drive current.

### Claim 9 (depends on 8)

The physical computer-readable storage medium of claim 8, wherein the motion sensor is one or more of an accelerometer, a gyroscope, or a compass.

### Claim 10 (depends on 8)

The physical computer-readable storage medium of claim 8, wherein the motion sensor is an accelerometer and the gravity vector is calculated using a low-pass filter of the accelerometer.

### Claim 11 (depends on 8)

The physical computer-readable storage medium of claim 8, wherein the drive current offset is selected from a plurality of predefined drive current offsets stored within a look-up table.

### Claim 12 (depends on 8)

The physical computer-readable storage medium of claim 8, further comprising:
providing the lens position value to an application via an application programming interface.

### Claim 13 (depends on 8)

The physical computer-readable storage medium of claim 8, further comprising:
calculating a distance between the electronic device and an object based upon the lens position value and a focal length of the camera lens.

### Claim 14 (depends on 8)

The physical computer-readable storage medium of claim 8, further comprising:
performing video stabilization based upon the lens position value.

### Claim 15

An electronic device comprising:
a motion sensor configured to detect an orientation of the electronic device;
a lens driver configured to generate a drive current to a lens motor; and
a processor for executing computer instructions, the computer instructions causing the processor to:
receive a drive current value from the lens driver;
determine a gravity vector based upon the orientation;
determine a drive current offset based upon the gravity vector;
combine the drive current value with the calculated drive current offset to create a normalized drive current; and
compute a lens position value associated with a camera lens of the electronic device based upon the normalized drive current.

### Claim 16 (depends on 15)

The electronic device of claim 15, wherein the motion sensor is one or more of an accelerometer, a gyroscope, or a compass.

### Claim 17 (depends on 15)

The electronic device of claim 15, wherein the motion sensor is an accelerometer and the gravity vector is calculated using a low-pass filter of the accelerometer.

### Claim 18 (depends on 15)

The electronic device of claim 15, wherein the drive current offset is selected from a plurality of predefined drive current offsets stored within a look-up table.

### Claim 19 (depends on 15)

The electronic device of claim 15, further comprising:
providing the lens position value to an application via an application programming interface.

### Claim 20 (depends on 15)

The electronic device of claim 15, further comprising instructions causing the processor to:
calculate a distance between the electronic device and an object based upon the lens position value and a focal length of the camera lens.

### Claim 21 (depends on 15)

The electronic device of claim 15, further comprising instructions causing the processor to:
perform video stabilization based upon the lens position value.
