Lens focusing method, system, equipment and medium
A focusing and lens technology, applied in the field of cameras, can solve the problems of inability to meet high-definition image acquisition, long focusing time, etc., and achieve the effect of improving convenience, good quality, and improving accuracy
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0033] see figure 1 , a lens focusing method provided by the embodiment of the application, in order to improve the focusing accuracy of the camera, so as to make the quality of image shooting better, the design adopts the entropy function based on statistical features to calculate the image sharpness, and uses the depth Learning and calculating the focal length and the actual distance, so that while improving the image quality, there is no need for continuous calculation when the motor is mobilized, so that the focal length can be directly adjusted, and the convenience is improved.
[0034] S1: Use the camera to capture multiple images with different distances of the subject reaching the preset definition, and record the focal length of any image and the actual distance between the camera and the subject, and save it to the database;
[0035] Before deep learning, it is necessary to collect a large number of subject distances and images with corresponding sharpness as training ...
Embodiment 2
[0062] see Figure 4 , which is a lens focusing system provided by the present invention, including a preset module 1, which is used for using a camera to collect a plurality of images of objects at different distances reaching a preset definition, and to record the focal length of any image and the camera The actual distance to the subject is saved to the database; the imaging formula of the camera is established according to the focal length and actual distance in the database;
[0063] The image acquisition module 2 is used to obtain an initial frame image, scan the initial frame image point by point, obtain an image matrix, and transmit it to the image processing device;
[0064] The sharpness calculation module 3 is used for the image processing device to use the entropy function based on statistical features to calculate the image sharpness; if the sharpness calculation result meets the preset threshold, the focusing operation is not performed; if the sharpness calculati...
Embodiment 3
[0068] see Figure 5 , an electronic device provided by the present invention, comprising at least one processor 6, at least one memory 7 and a data bus 8; wherein: the processor 6 and the memory 7 complete mutual communication through the data bus 8; The program instructions are executed by the processor 6, and the processor 6 invokes the program instructions to execute a lens focusing method. For example to implement:
[0069] Use the camera to collect multiple images of subjects at different distances to reach the preset definition, and record the focal length of any image and the actual distance between the camera and the subject, and save it to the database; According to the focal length in the database and the actual The imaging formula of the camera is established by the distance; the initial frame image is obtained, and the initial frame image is scanned point by point to obtain an image matrix, which is transmitted to the image processing device; the image processing...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 


