# US 2021/0281738 A1 · Determining whether a camera is out-of-focus

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

- Number: US 2021/0281738 A1
- Document ID: US20210281738A1
- Status: Published application
- Kind: A1
- Application number: 17/194,611
- Filed: 2021-03-08
- Published: 2021-09-09
- Earliest claimed: 2020-03-09
- Assignees: Axis AB
- Applicants: Axis AB
- Inventors: Johan JEPPSSON; Björn BENDERIUS; Niclas SVENSSON; Fritjof JONSSON; Jonas LEVIN; Stefan LINDGREN
- Web page: https://patentgrep.com/patent/US20210281738A1

## CPC

- H04N 23/67: Focus control based on electronic image sensor signals
- H04N 23/676: {Bracketing for image capture at varying focusing conditions}
- H04N 7/18: Closed-circuit television [CCTV] systems, i.e. systems in which the video signal is not broadcast
- G03B 13/36: Autofocus systems
- H04N: PICTORIAL COMMUNICATION, e.g. TELEVISION
- 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)

## Abstract

A method for determining whether a video camera is out-of-focus comprises: capturing image data; setting a focus setting difference threshold based on a filter function configured to filter the image data; adjusting a focus setting between a present focus setting and an altered focus setting such that a first subset of the image data is captured with the video camera being set in the present focus setting and such that a second subset of the image data is captured with the video camera being set in the altered focus setting, wherein the adjusting is performed such that a difference between the present and altered focus settings is below the threshold; forming the video stream by applying the filter function on the image data; determining first and second focus metrics of the image data; and determining whether the video camera is out-of-focus by comparing the first and second focus metrics.

## Claims

### Claim 1

A method for determining whether a video camera is out-of-focus, the method comprising:
capturing, by an image sensor of the video camera, image data;
setting a focus setting difference threshold based on a filter setting of a filter function, wherein the filter function is configured to filter the image data as part of transforming the image data to a video stream so that redundant, or deemed superfluous, information from the image data is removed during the process of transforming the image data to a video stream, wherein the focus setting difference threshold is set such that the step of forming the video stream by applying the filter function on common image data, captured with different focus settings, results in substantially indifferent video stream image data;
while capturing the image data, adjusting a focus setting of the video camera between a present focus setting and an altered focus setting such that a first subset of the image data is captured with the video camera being set in the present focus setting and such that a second subset of the image data is captured with the video camera being set in the altered focus setting, wherein the adjusting is performed such that a difference between the present focus setting and the altered focus setting is below the focus setting difference threshold;
forming the video stream by applying the filter function on the image data;
determining a first focus metric of the first subset of the image data and a second focus metric of the second subset of the image data, wherein the first and second focus metrics are determined on the image data prior to applying the filter function on the image data; and
determining whether the video camera is out-of-focus by comparing the first and second focus metrics.

### Claim 2 (depends on 1)

The method according to claim 1, wherein the filter function comprises a noise reduction function.

### Claim 3 (depends on 1)

The method according to claim 1, wherein the filter function comprises an encoding function.

### Claim 4 (depends on 1)

The method according to claim 1, wherein the focus setting comprises a relative position between the image sensor and a focusing lens of the video camera.

### Claim 5 (depends on 1)

The method according to claim 1, wherein the focus setting comprises one or more of a lens focal distance, a lens focal depth, and a lens curvature radius.

### Claim 6 (depends on 1)

The method according to claim 1, wherein the first focus metric of the first subset of the image data and the second focus metric of the second subset of the image data comprise an image sharpness metric.

### Claim 7 (depends on 1)

The method according to claim 1, wherein the first focus metric of the first subset of the image data and the second focus metric of the second subset of the image data comprise an image contrast metric.

### Claim 8 (depends on 1)

The method according to claim 1, further comprising determining statistical information relating to the first focus metric of the first subset of the image data and/or the second focus metric of the second subset of the image data.

### Claim 9

A non-transitory computer readable storage medium comprising instructions which, when executed by a computer, cause the computer to carry out a method for determining whether a video camera is out-of-focus, the method comprising:
capturing, by an image sensor of the video camera, image data;
setting a focus setting difference threshold based on a filter setting of a filter function, wherein the filter function is configured to filter the image data as part of transforming the image data to a video stream so that redundant, or deemed superfluous, information from the image data is removed during the process of transforming the image data to a video stream, wherein the focus setting difference threshold is set such that the step of forming the video stream by applying the filter function on common image data, captured with different focus settings, results in substantially indifferent video stream image data;
while capturing the image data, adjusting a focus setting of the video camera between a present focus setting and an altered focus setting such that a first subset of the image data is captured with the video camera being set in the present focus setting and such that a second subset of the image data is captured with the video camera being set in the altered focus setting, wherein the adjusting is performed such that a difference between the present focus setting and the altered focus setting is below the focus setting difference threshold;
forming the video stream by applying the filter function on the image data;
determining a first focus metric of the first subset of the image data and a second focus metric of the second subset of the image data, wherein the first and second focus metrics are determined on the image data prior to applying the filter function on the image data; and
determining whether the video camera is out-of-focus by comparing the first and second focus metrics.

### Claim 10

A video camera comprising:
an image sensor, configured to capture image data; and
control circuitry, configured to:
set a focus setting difference threshold based on a filter setting of a filter function, wherein the filter function is configured to filter the image data as part of transforming the image data to a video stream so that redundant, or deemed superfluous, information from the image data is removed during the process of transforming the image data to a video stream, wherein the focus setting difference threshold is set such that the step of forming the video stream by applying the filter function on common image data, captured with different focus settings, results in substantially indifferent video stream image data.;
adjust, while capturing the image data, a focus setting of the video camera between a present focus setting and an altered focus setting such that a first subset of the image data is captured with the video camera being set in the present focus setting and such that a second subset of the image data is captured with the video camera being set in the altered focus setting, wherein the adjusting is performed such that a difference between the present focus setting and the altered focus setting is below the focus setting difference threshold;
form the video stream by applying the filter function on the image data;
determine a first focus metric of the first subset of the image data and a second focus metric of the second subset of the image data, wherein the first and second focus metrics are determined on the image data prior to applying the filter function on the image data;
determine whether the video camera is out-of-focus by comparing the first and second focus metrics.

### Claim 11 (depends on 10)

The video camera according to claim 10, wherein the filter function comprises a noise reduction function.

### Claim 12 (depends on 10)

The video camera according to claim 10, wherein the filter function comprises an encoding function.

### Claim 13 (depends on 10)

The video camera according to claim 10, wherein the focus setting comprises a relative position between the image sensor and a focusing lens of the video camera.

### Claim 14 (depends on 10)

The video camera according to claim 10, wherein the focus setting comprises one or more of a lens focal distance, a lens focal depth, and a lens curvature radius.

### Claim 15 (depends on 10)

The video camera according to claim 10, wherein the first focus metric of the first subset of the image data and the second focus metric of the second subset of the image data comprise an image sharpness metric.
