A camera automatic focusing method and device based on defocus estimation improved hill climbing method
A technology of automatic focus and hill-climbing method, which is applied in the field of camera focus, can solve the problem of difficulty in balancing the focus speed and accuracy, and achieve the effect of solving the difficulty in balancing speed and accuracy and ensuring focus accuracy
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0048] Embodiment 1 provides a camera auto-focusing device based on defocus estimation to improve the hill climbing method, including a memory, a processor, and a program stored in the memory and operable on the processor. When the processor executes the program, a camera based on Defocus estimation improves camera autofocus methods for hill climbing methods, such asfigure 1 As shown, the specific process is as follows:
[0049] 1. Obtain the current frame image and calculate the focus step of the current frame image.
[0050] The out-of-focus state of the lens can be regarded as the state of the Gaussian blur of the image. It has been proved by experiments that the Sobel operator is used to evaluate the image quality. The difference between the blurred image and the blurred image after Gaussian blur is small, and the greater the depth of defocus, the smaller the deviation of the sharpness evaluation value. Therefore, the step size of the focus can be adaptively adjusted accor...
Embodiment 2
[0069] Embodiment 2 provides a camera auto-focusing method based on improved hill-climbing method based on defocus estimation, such as Figure 4 As shown, on the basis of Embodiment 1, after calculating the focus step of the current frame image, it is also judged whether the focus step L of the current frame image is the minimum focus step L 0 .
[0070] When L>L 0 , then control the motor to adjust along the set focus direction with the focus step L of the current frame image, and perform step 1 of embodiment 1 again, and cycle until L=L 0 .
[0071] When L=L 0 , the image has reached the close-to-focus position, and the motor is controlled with the minimum focus step size L 0 Adjust along the set focus direction, and perform step 2 of Example 1. Only when the image quality evaluation is the best, that is, when the sharpness evaluation value is the largest and the focus step length is the smallest, can the quasi-focus state be achieved, avoiding local peaks and the impac...
Embodiment 3
[0076] On the basis of Embodiment 1 and Embodiment 2, Embodiment 3 provides a camera auto-focus method based on improved hill-climbing method based on defocus estimation. Less background pixels have an influence on the image definition evaluation value, and the accuracy of the definition evaluation value on the definition evaluation is improved.
[0077] It can be inferred from the usage habits when taking pictures that the uppermost background of the observed target is mostly, and the lower part is mostly the background and target mixed. The auto focus window is selected as the lower center position, for example, if Figure 5 As mentioned above, selecting the position lower than the center as the focus window can avoid the influence of too much background on the calculation of the image definition evaluation value.
PUM
Abstract
Description
Claims
Application Information
- R&D Engineer
- R&D Manager
- IP Professional
- Industry Leading Data Capabilities
- Powerful AI technology
- Patent DNA Extraction
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com