# US 2021/0172589 A1 · Intelligent Focusing Method Of Intelligent Moving Head Light Based On Machine Vision

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

- Number: US 2021/0172589 A1
- Document ID: US20210172589A1
- Status: Published application
- Kind: A1
- Application number: 17/182,475
- Filed: 2021-02-23
- Published: 2021-06-10
- Earliest claimed: 2019-10-31
- Assignees: Guangzhou Haoyang Electronic Co., Ltd.
- Applicants: Guangzhou Haoyang Electronic Co., Ltd.
- Inventors: Weikai Jiang
- Web page: https://patentgrep.com/patent/US20210172589A1

## CPC

- F21V 21/14: Adjustable mountings
- G02B 7/36: using image sharpness techniques {, e.g. image processing techniques for generating autofocus signals (image data processing per se G06T; in cameras having a solid state image sensor H04N23/67)}
- G03B 21/53: Means for automatic focusing, e.g. to compensate thermal effects
- G06T 5/73: Deblurring; Sharpening
- G06T 7/0002: {Inspection of images, e.g. flaw detection}
- H04N 23/673: {based on contrast or high frequency components of image signals, e.g. hill climbing method}
- H05B 47/105: in response to determined parameters
- F21Y 2115/10: Light-emitting diodes [LED]
- G06T 2207/30168: Image quality inspection
- F21V: FUNCTIONAL FEATURES OR DETAILS OF LIGHTING DEVICES OR SYSTEMS THEREOF; STRUCTURAL COMBINATIONS OF LIGHTING DEVICES WITH OTHER ARTICLES, NOT OTHERWISE PROVIDED FOR
- 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)
- G06T: IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- H04N: PICTORIAL COMMUNICATION, e.g. TELEVISION
- H05B: ELECTRIC HEATING; ELECTRIC LIGHT SOURCES NOT OTHERWISE PROVIDED FOR; CIRCUIT ARRANGEMENTS FOR ELECTRIC LIGHT SOURCES, IN GENERAL
- F21Y: INDEXING SCHEME ASSOCIATED WITH SUBCLASSES F21K, F21L, F21S and F21V, RELATING TO THE FORM OR THE KIND OF THE LIGHT SOURCES OR OF THE COLOUR OF THE LIGHT EMITTED

## Abstract

An intelligent focusing method of an intelligent moving head light based on machine vision includes the following steps: prestoring coordinate positions Z21 and Z22 of the focusing assembly corresponding to stage light projection distances Smax and Smin respectively, moving the focusing assembly to a position between Z21 and Z22 after the controller receives a command to start an automatic focusing function; gradually moving the focusing assembly between Z21 and Z22 by a focusing search strategy, calculating a sharpness evaluation value Tn of a current projected image according to an image sharpness evaluation function, and determining whether Tn is greater than a preset high sharpness threshold TH if yes, completing the focusing, otherwise determining whether Tn is less than or equal to Tn-1, if yes, driving the stepper motor by the driver to operate in an opposite direction, otherwise driving the stepper motor by the driver to operate in an original direction, until Tn is greater than TH.

## Claims

### Claim 1

An intelligent focusing method of an intelligent moving head light based on machine vision, wherein the intelligent moving head light comprises a controller, a camera, a driver, a stepper motor and an optical lens assembly that includes a focusing assembly and a zooming assembly; the intelligent focusing method comprising the following steps:
S1, prestoring coordinate positions Z21 and Z22 of the focusing assembly corresponding to stage light projection distances Smax and Smin respectively, and moving the zooming assembly to a position between Z21 and Z22 after the controller receives a command to start an automatic focusing function;
S2, gradually moving the focusing assembly between Z21 and Z22 by a focusing search strategy, calculating a sharpness evaluation value Tn of a current projected image according to an image sharpness evaluation function, and determining whether Tn is greater than a preset high sharpness threshold TH, if yes, the focusing step is completed, otherwise executing step S3; and
S3, determining whether Tn is less than or equal to Tn-1, if yes, driving the stepper motor by the driver to operate in an opposite direction, otherwise driving the stepper motor by the driver to operate in an original direction, and then repeatedly executing step S2 until the sharpness evaluation value Tn is greater than the preset high sharpness threshold TH to complete the focusing step.

### Claim 2 (depends on 1)

The intelligent focusing method of the intelligent moving head light based on machine vision according to claim 1, wherein the step S1 further includes:
S11, obtaining a coordinate position Z1 of the zooming assembly in the intelligent moving head light when the controller receives the command to start the automatic focusing function, calculating a coordinate position Z2 of the focusing assembly correspondingly, and driving the stepper motor by the driver to position the focusing assembly to the coordinate position Z2; and
S12, the controller acquiring current projected image data and calculating the sharpness evaluation value Tn of the current projected image according to the image sharpness evaluation function.

### Claim 3 (depends on 1)

The intelligent focusing method of the intelligent moving head light based on machine vision according to claim 1, further comprising:
S4, when the intelligent moving head light works normally, the controller monitoring a coordinate position Z1 of the zooming assembly, and when the position of the zooming assembly changes, repeatedly executing the steps S1 to S3 until the focusing step is completed.

### Claim 4 (depends on 1)

The intelligent focusing method of the intelligent moving head light based on machine vision according to claim 1, further comprising:
S5, when the intelligent moving head light works normally, the controller monitoring a coordinate position Z1 of the zooming assembly, and when the zooming assembly position does not change, determining whether the sharpness evaluation value Tn of the current projected image is greater than or equal to a preset low sharpness threshold TL, if yes, the focusing step is completed, otherwise repeatedly executing step S2 until the focusing step is completed.

### Claim 5 (depends on 2)

The intelligent focusing method of the intelligent moving head light based on machine vision according to claim 2, wherein the step S11 specifically comprises:
acquiring the coordinate position Zx of the zooming assembly in the intelligent moving head light, and calculating the coordinate position Z2 of the focusing assembly through a cam curve of a two-component zoom optical system.

### Claim 6 (depends on 1)

The intelligent focusing method of the intelligent moving head light based on machine vision according to claim 1, wherein the focusing search strategy is a hill-climbing search method.

### Claim 7 (depends on 1)

The intelligent focusing method of the intelligent moving head light based on machine vision according to claim 1, wherein the image sharpness evaluation function adopts a spectral function, and spectral values of an image is calculated by a Fourier transform function, that is,
Y(n,m)=X(n,m)·exp(−j2π·n/N)·exp(−j2π·m/M)
where n=0, 1, . . . , N−1, m=0, 1, . . . , M−1, N represents rows of a sampled two-dimensional discrete image area N×M, M represents columns of the sampled two-dimensional discrete image area N×M, X(n,m) represents pixel points, and Y(n,m) represents frequency points.

### Claim 8 (depends on 7)

The intelligent focusing method of the intelligent moving head light based on machine vision according to claim 7, wherein the calculation of the sharpness evaluation value Tn of the current projected image according to the spectral values of the image specifically includes:
E

{
Y
(
n
,
m
)
}
=
1
N
·
M

∑
n

∑
m

Y
(
n
,
m
)
σ
=
∑
n

∑
m

(
Y
(
n
,
m
)
-
E

{
Y
(
n
,
m
)
}
)
2
N
·
M
where E{Y(n,m)} represents an average value of the frequency points, σ represents a standard deviation value, namely the sharpness evaluation value Tn of the current projected image.

### Claim 9 (depends on 1)

The intelligent focusing method of the intelligent moving head light based on machine vision according to claim 1, wherein a distance between Z21 and Z22 occupies 15% of a maximum route of the focusing assembly.

### Claim 10 (depends on 1)

The intelligent focusing method of the intelligent moving head light based on machine vision according to claim 1, wherein a maximum value of Smax is less than or equal to 50 m, and a minimum value of Smin is greater than or equal to 3 m.

### Claim 11 (depends on 1)

The intelligent focusing method of the intelligent moving head light based on machine vision according to claim 1, wherein a distance in which the focusing assembly moves gradually is from 0.2% to 0.6% of the maximum route of the focusing assembly.
