Method and apparatus for lens focusing, computer device and storage medium

US12445723B2 · US · B2

Patent metadata
FieldValue
Publication numberUS-12445723-B2
Application numberUS-202218690585-A
CountryUS
Kind codeB2
Filing dateJul 4, 2022
Priority dateSep 18, 2021
Publication dateOct 14, 2025
Grant dateOct 14, 2025

How to read this patent

A practical reading order for non-experts. Skip the full description unless you need deep technical detail.

  1. Title

    What the patent document calls the invention.

  2. Abstract

    A short plain-language summary of the technical disclosure.

  3. Assignees and inventors

    Who owns or filed the patent and who is credited as inventor.

  4. Key dates

    Filing, priority, publication, and grant dates set the timeline.

  5. First independent claim

    The legal scope of protection — read this for what is actually claimed.

  6. CPC / IPC classifications

    Technology tags used to group this patent with similar filings.

  7. Citations and related patents

    Prior art links and similar publications in this corpus.

Abstract

Official abstract text for this publication.

Provided are a method and an apparatus for lens focusing, a computer device, and a storage medium. The method includes: acquiring a test image obtained by a lens shooting a reference image at a current focusing position, and determining a low-frequency modulation transfer function value of the test image; in response to determining that the low-frequency modulation transfer function value meets a preset value range condition, determining a high-frequency modulation transfer function value of the test image, determining a movement step according to the high-frequency modulation transfer function value, and controlling the lens to move according to the movement step; and using the next focusing position which the lens moves to according to the movement step as a new current focusing position to focus the lens for one time.

First claim

Opening claim text (preview).

What is claimed is: 1. A method for lens focusing, comprising: acquiring a test image obtained by a lens shooting a reference image at a current focusing position, and determining a low-frequency modulation transfer function value of the test image; in response to determining that the low-frequency modulation transfer function value meets a preset value range condition, determining a high-frequency modulation transfer function value of the test image; determining a movement step according to the high-frequency modulation transfer function value, and controlling the lens to move according to the movement step; and using a next focusing position which the lens moves to according to the movement step as a new current focusing position to focus the lens for one time. 2. The method according to claim 1 , wherein before acquiring the test image obtained by the lens shooting the reference image at the current focusing position, the method further comprises: acquiring an initial step, and using an initial focusing position as a first current focusing position; wherein the initial step is greater than the movement step. 3. The method according to claim 1 , further comprising: in response to determining that the low-frequency modulation transfer function value does not meet the preset value range condition but meets a low-frequency step exchanging condition, determining a variable step according to the low-frequency modulation transfer function value, controlling the lens to move according to the variable step, and using a next focusing position which the lens moves to according to the variable step as a new current focusing position. 4. The method according to claim 1 , wherein the reference image comprises a feature pattern; and wherein acquiring the test image obtained by the lens shooting the reference image at the current focusing position comprises: acquiring a shot image obtained by the lens shooting the reference image at the current focusing position, and desharpening the shot image; and removing interference outside a feature image from the desharpened shot image to obtain the test image. 5. The method according to claim 1 , wherein determining the low-frequency modulation transfer function value of the test image comprises: generating a modulation transfer function curve of the test image, and determining the low-frequency modulation transfer function value according to the modulation transfer function curve and a low-frequency band range of a spatial frequency. 6. The method according to claim 5 , wherein determining the high-frequency modulation transfer function value of the test image comprises: determining the high-frequency modulation transfer function value according to the modulation transfer function curve and a high-frequency band range of the spatial frequency. 7. The method according to claim 6 , wherein generating the modulation transfer function curve of the test image comprises: positioning and obtaining a feature pattern in the test image, calculating modulation transfer function values at different spatial frequencies of the feature pattern, and generating the modulation transfer function curve according to the modulation transfer function values. 8. The method according to claim 1 , wherein determining the movement step according to the high-frequency modulation transfer function value comprises: determining a high-frequency modulation transfer function value interval in which the high-frequency modulation transfer function value falls, and determining, according to a mapping relationship between high-frequency modulation transfer function value intervals and movement steps, a movement step which matches the high-frequency modulation transfer function value. 9. A computer device, comprising a memory, a processor, and a computer program stored in the memory and executable by the processor, wherein the processor, when executing the computer program, implements: acquiring a test image obtained by a lens shooting a reference image at a current focusing position, and determining a low-frequency modulation transfer function value of the test image; in response to determining that the low-frequency modulation transfer function value meets a preset value range condition, determining a high-frequency modulation transfer function value of the test image; determining a movement step according to the high-frequency modulation transfer function value, and controlling the lens to move according to the movement step; and using a next focusing position which the lens moves to according to the movement step as a new current focusing position to focus the lens for one time. 10. A non-transitory computer-readable storage medium, comprising computer-executable instructions, wherein the computer-executable instructions, when executed by a computer processor, are configured to perform: acquiring a test image obtained by a lens shooting a reference image at a current focusing position, and determining a low-frequency modulation transfer function value of the test image; in response to determining that the low-frequency modulation transfer function value meets a preset value range condition, determining a high-frequency modulation transfer function value of the test image; determining a movement step according to the high-frequency modulation transfer function value, and controlling the lens to move according to the movement step; and using a next focusing position which the lens moves to according to the movement step as a new current focusing position to focus the lens for one time. 11. The computer device according to claim 9 , wherein the processor, when executing the computer program, implements: before acquiring the test image obtained by the lens shooting the reference image at the current focusing position, acquiring an initial step, and using an initial focusing position as a first current focusing position; wherein the initial step is greater than the movement step. 12. The computer device according to claim 9 , wherein the processor, when executing the computer program, implements: in response to determining that the low-frequency modulation transfer function value does not meet the preset value range condition but meets a low-frequency step exchanging condition, determining a variable step according to the low-frequency modulation transfer function value, controlling the lens to move according to the variable step, and using a next focusing position which the lens moves to according to the variable step as a new current focusing position. 13. The computer device according to claim 9 , wherein the reference image comprises a feature pattern; and wherein the processor, when executing the computer program, implements: acquiring a shot image obtained by the lens shooting the reference image at the current focusing position, and desharpening the shot image; and removing interference outside a feature image from the desharpened shot image to obtain the test image. 14. The computer device according to claim 9 , wherein the processor, when executing the computer program, implements: generating a modulation transfer function curve of the test image, and determining the low-frequency modulation transfer function value according to the modulation transfer function curve and a low-frequency band range of a spatial frequency. 15. The computer device according to claim 9 , wherein the processor, when executing the computer program, implements: determining a high-frequency modulation transfer function value interval in which the high-frequency modulation transfer function value falls,

Assignees

Inventors

Classifications

  • Computer-aided capture of images, e.g. transfer from script file into camera, check of taken image quality, advice or proposal for image composition or decision on when to take image · CPC title

  • H04N23/673Primary

    based on contrast or high frequency components of image signals, e.g. hill climbing method · CPC title

  • H04N23/67Primary

    Focus control based on electronic image sensor signals · CPC title

Patent family

Related publications grouped by family.

External sources

Frequently asked questions

Answers are generated from the same data shown on this page.

What does patent US12445723B2 cover?
Provided are a method and an apparatus for lens focusing, a computer device, and a storage medium. The method includes: acquiring a test image obtained by a lens shooting a reference image at a current focusing position, and determining a low-frequency modulation transfer function value of the test image; in response to determining that the low-frequency modulation transfer function value meets…
Who is the assignee on this patent?
Zhejiang Uniview Tech Co Ltd
What technology area does this patent fall under?
Primary CPC classification H04N23/673. Mapped technology areas include Electricity.
When was this patent published?
Publication date Tue Oct 14 2025 00:00:00 GMT+0000 (Coordinated Universal Time) (B2). Legal status and post-grant events are not shown on this page.
What related patents are in patentsdb?
We list 5 related publications on this page (citations in our corpus or others sharing the same primary CPC).