Focusing compensation method and device, electronic equipment and storage medium
A focus compensation and post-compensation technology, used in TV, electrical components, color TV, etc., can solve the problem of inaccurate focus compensation and achieve the best clarity
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0053] figure 1 A schematic diagram of the focus compensation process provided by the embodiment of the present invention, the process includes the following steps:
[0054] S101: Acquire a first sharpness value of a first image captured by the image acquisition device when the image acquisition device is focused.
[0055] The focus compensation method provided by the embodiment of the present invention is applied to an electronic device, and the electronic device may be a PC, a personal computer, etc., or an image acquisition device.
[0056] In the embodiment of the present invention, before performing focus compensation, first wait for the image acquisition device to focus. The image acquisition device has focused. It refers to the general focus function integrated by the image acquisition device according to the requirements, such as the focus triggered by zooming and rotating the pan / tilt. . Moreover, the focus compensation method provided by the embodiment of the prese...
Embodiment 2
[0065] In order to make the determined second adjustment direction more accurate, on the basis of the above embodiments, in the embodiment of the present invention, the determining the second adjustment direction according to the first sharpness value and the second sharpness value includes:
[0066] controlling the motor of the image acquisition device to adjust from the second position to the first position, and obtaining a fourth definition value of a fourth image collected by the image acquisition device;
[0067] If the second sharpness value is greater than the first sharpness value and the fourth sharpness value, determine that the second adjustment direction is the same as the first adjustment direction;
[0068] If the second sharpness value is smaller than the first sharpness value and the fourth sharpness value, it is determined that the second adjustment direction is opposite to the first adjustment direction.
[0069] In order to avoid the problem of inaccurate de...
Embodiment 3
[0074] On the basis of the above-mentioned embodiments, in the embodiment of the present invention, in the second adjustment direction, each third position of the motor is sequentially determined, and each third position is acquired The third sharpness value of the third image, and the third position corresponding to the largest third sharpness value as the compensated motor position includes:
[0075] A. In the second adjustment direction, according to the preset adjustment step and the second position, determine the third position of the motor, and obtain the third definition of the third image collected at the third position value;
[0076] B. Determine whether the third sharpness value is greater than the second sharpness value, if so, use the third sharpness value to update the second sharpness value, and use the third position to update the second sharpness value update the second position, and return to step A, if not, use the third position as the motor position after...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 


