Unlock instant, AI-driven research and patent intelligence for your innovation.

Autofocus algorithm

An automatic focusing and algorithm technology, applied in the field of image processing, can solve problems such as low focusing efficiency, reduce the number of searches, and improve focusing efficiency and accuracy.

Active Publication Date: 2018-11-06
UNIV OF SHANGHAI FOR SCI & TECH
View PDF6 Cites 7 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

The autofocus method based on the curve fitting of the focus evaluation function can quickly find the maximum value point of the evaluation function, but due to the interference of local extreme values, and the search is only a quick search of the whole process, this maximum point may not be the actual peak point, so Focus efficiency is relatively low

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Autofocus algorithm
  • Autofocus algorithm
  • Autofocus algorithm

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0030] In order to make the technical means and effects realized by the present invention easy to understand, the present invention will be described in detail below in conjunction with the embodiments and accompanying drawings.

[0031] figure 1 is a flow chart of the autofocus algorithm in an embodiment of the present invention.

[0032] like figure 1 As shown, a kind of automatic focusing algorithm of the present embodiment comprises the following steps:

[0033] figure 2 is a schematic diagram of the curve fitting process in the embodiment of the present invention.

[0034] like figure 2 As shown, in step 1, two consecutive focus images of the target object are collected as the first focus image and the second focus image respectively, and the step size of the stepping motor is preset as SW 0 , the stroke is L, then use the sobel gradient function to calculate respectively the focus evaluation function value of the first focus image and the focus evaluation function...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention discloses an autofocus algorithm, which comprises the following steps: collecting two consecutive focusing images of a target object, and respectively drawing a graph of a focusing evaluation function of the two focusing images; finding peak points F1 and F2 in the two graph; then, fitting the curves in the two graphs to find the peak point F0 after obtaining a fitted curve; comparing the positions of the focus lens where the F and F points are located, starting from the smaller position point, The larger position point is the end point, so that the focusing lens where the F1 andF2 are located; using the smaller position as a starting point and the larger position as a final point so that the focusing lens walks to the final point from the starting point with a step size SW,and the maximum value of the focusing evaluation function and the position of the focus lens are recorded; search is carried out back and forth repeatedly near the maximum value point; search is finished until the step size of the stepper motor is reduced to a set step size; at the moment, the focus lens stops at the maximum value Fmn of the focusing evaluation function, and the position of the focus lens is Wmn; the sizes of the Fmn and Fo are compared; if |Fmn-F0| is not greater than delta, the focusing process is finished; and if |Fmn-F0| is greater than delta, a preset step size is reduced to continue to search.

Description

technical field [0001] The invention belongs to the technical field of image processing, and in particular relates to an automatic focusing algorithm. Background technique [0002] An ideal sharpness evaluation function should have unimodality, unbiasedness and good stability. The autofocus method based on the curve fitting of the focus evaluation function can quickly find the maximum value point of the evaluation function, but due to the interference of local extreme values, and the search is only a quick search of the whole process, this maximum point may not be the actual peak point, so The focusing efficiency is relatively low. Therefore, it is necessary to design a focusing algorithm that can solve the above problems. Contents of the invention [0003] The present invention is made to solve the above problems, and the purpose is to provide an automatic focusing algorithm. [0004] The present invention provides a kind of automatic focusing algorithm, has such featu...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
Patent Type & Authority Applications(China)
IPC IPC(8): H04N5/232
CPCH04N23/67
Inventor 江旻珊阳婷徐晓立张学典
Owner UNIV OF SHANGHAI FOR SCI & TECH