CN112637506A - Method for accelerating focusing of mobile phone - Google Patents
Method for accelerating focusing of mobile phone Download PDFInfo
- Publication number
- CN112637506A CN112637506A CN202011590736.0A CN202011590736A CN112637506A CN 112637506 A CN112637506 A CN 112637506A CN 202011590736 A CN202011590736 A CN 202011590736A CN 112637506 A CN112637506 A CN 112637506A
- Authority
- CN
- China
- Prior art keywords
- focusing
- evaluation
- pictures
- mobile phone
- image
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N23/00—Cameras or camera modules comprising electronic image sensors; Control thereof
- H04N23/60—Control of cameras or camera modules
- H04N23/67—Focus control based on electronic image sensor signals
- H04N23/673—Focus control based on electronic image sensor signals based on contrast or high frequency components of image signals, e.g. hill climbing method
Abstract
The invention discloses a method for accelerating focusing of a mobile phone, which comprises the following specific steps: the method comprises the steps of collecting a plurality of pictures at a fixed image distance through a camera of the mobile phone, collecting all the pictures at an interval of 25mm, and selecting the best focused one of the pictures as a final photographing result by using a focusing evaluation method after the pictures are collected. The mode does not need any improvement on the existing hardware, and the shooting speed can be improved by more than 40% under the condition of extremely small loss of focusing effect as long as the storage space can be slightly improved.
Description
Technical Field
The invention relates to the technical field of mobile phones, in particular to a method for accelerating focusing of a mobile phone.
Background
There are three main focusing modes for cameras in the market, which are respectively based on contrast detection, phase detection and laser ranging. The basic contrast detection adopts a trial and error and continuous adjustment method, and the direction of the prism group in the camera is continuously moved back and forth until the position with the best focusing effect is found.
The phase detection is that two sides of the prism group are respectively provided with a small hole with the same width, and the distance of the prism group with the difference between the current phase and the optimal phase can be directly deduced through the calculation of the phase on the sensor, so that the prism group is directly moved to the optimal focusing position.
The laser ranging collects the time required by laser reflection, so that the distance from a shot object to a photosensitive plane is accurately measured, and the distance between the shot object and the photosensitive plane is directly adjusted.
Both the phase detection and laser ranging methods can obtain focused pictures very quickly, but they have high requirements on hardware.
Disclosure of Invention
The present invention is directed to a method for speeding up focusing of a mobile phone, so as to solve the problems mentioned in the background art.
In order to achieve the purpose, the invention provides the following technical scheme:
a method for accelerating focusing of a mobile phone comprises the following specific steps: the method comprises the steps of collecting a plurality of pictures at a fixed image distance through a camera of the mobile phone, collecting all the pictures at an interval of 25mm, and selecting one of the pictures with the best focusing by using a focusing evaluation method as a final photographing result after the pictures are collected.
As a further scheme of the invention: the focusing evaluation method comprises a focusing evaluation algorithm based on derivatives, statistics, histograms and instincts, and comprises the steps of evaluating part of specially oriented or all pixel points in a picture, carrying out statistical evaluation on the characteristics of the pixel points or the data of the derivatives, the variances, the absolute differences and the like of the pixel points adjacent to the pixel points, and carrying out sum or maximum value operation on the values obtained by all the evaluation points finally, so as to obtain the evaluation of the specific value of the focusing effect of the picture.
As a further scheme of the invention: the focusing evaluation method adopts the formulaThis formula shows that the sum is calculated based on the derivative of the intensity of the gray values, where x and y represent two-dimensional coordinates of the image and i (x, y) represents the gray value of the corresponding pixel.
As a further scheme of the invention: the camera only needs to store the evaluation value of the focusing algorithm of the previous picture and the position of the prism group in the focusing process, and compares the evaluation value with the evaluation value of the focusing algorithm of the current image.
As a further scheme of the invention: the image formed by the position of the prism group is displayed in the camera or the mobile phone in real time.
As a further scheme of the invention: the total photographing time includes time required for adjusting the focus, time required for acquiring an image, and time required for calculating the result of the focusing algorithm.
Compared with the prior art, the invention has the beneficial effects that: the invention can greatly save the time spent on focusing. The mode does not need any improvement on the existing hardware, and the shooting speed can be improved by more than 40% under the condition of extremely small loss of focusing effect as long as the storage space can be slightly improved.
Drawings
Fig. 1 is a focusing principle diagram.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
As shown in fig. 1, a group of prisms is arranged in the middle of the camera, the focal length among the prisms is fixed, and the whole group of prisms moves together through an aperture motor when focusing. When a picture is taken, the distance between the imaging light sensor and the object to be taken is fixed. The focusing process is to try to move the whole prism group, in the process, the sum of the object distance u and the image distance v is constant, the focal length f of the prism group is also fixed, and what we do is to adjust the ratio of the object distance u to the image distance v, so that the formula is satisfied:
1/u+1/v=1/f
the traditional focusing mode adopts a hill climbing method, the focusing function of the prism group from the imaging of the initial position is calculated, the obtained result is compared with the imaging effect obtained by the prism group at the adjacent position, then the prism group is continuously moved to the position with better diagonal effect, when the improved effect is less than a certain threshold value, the imaging is determined to be clear, and therefore the focusing process which can be observed by people is from blurring to being clear to blurring and finally returning to being clear.
Example 1: in the embodiment of the invention, a method for accelerating focusing of a mobile phone comprises the following specific steps: the method comprises the steps of collecting a plurality of pictures at a fixed image distance through a camera of the mobile phone, collecting all the pictures at an interval of 25mm, and selecting one of the pictures with the best focusing by using a focusing evaluation method as a final photographing result after the pictures are collected.
The focusing evaluation method comprises a focusing evaluation algorithm based on derivatives, statistics, histograms and instincts, and comprises the steps of evaluating part of specially oriented or all pixel points in a picture, carrying out statistical evaluation on the characteristics of the pixel points or the derivatives, variances, absolute differences and other data of the pixel points adjacent to the pixel points, and carrying out sum or maximum value operation on values obtained by all the evaluation points finally, so as to obtain the evaluation of specific values of the focusing effect of the picture.
The formula adopted by the focusing evaluation method isThis formula shows that the sum is calculated based on the derivative of the intensity of the gray values, where x and y represent two-dimensional coordinates of the image and i (x, y) represents the gray value of the corresponding pixel. Of course, this value may also be used as a variance, laplacian, sobel, or the like. Different ways of focus assessment are applied differently in different scenarios. Of course, we only pay attention to how to accelerate and the proportion of acceleration, and do not pay attention to the effect, so the calculation is uniformly carried out by adopting the Laplacian operator.
The camera only needs to store the focusing algorithm evaluation value and the prism group position of the previous picture in the process and compares the focusing algorithm evaluation value with the focusing algorithm evaluation value of the existing imaging, and the imaging of the prism group at the position is displayed in the camera or the mobile phone in real time, namely, the whole process does not involve the caching of the image, so the time consumption of the traditional mode is larger.
The design chooses to capture many photographs at a fixed image distance. These images were all acquired first at 25mm intervals. After the photos are collected, the best focusing one of the images is selected as the final photographing result by using the focusing evaluation function.
During the whole photographing process, the time consumed by a total of three processes is remarkable. The time required for adjusting the focal length, the time required for acquiring the image, and the time required for calculating the result of the focusing algorithm. The time required for collecting the image is longest (hundred millisecond magnitude), the focusing function is calculated for the second time (ten millisecond magnitude), and the focusing time is shortest (millisecond magnitude). The aim is to reduce the number of picture acquisitions as much as possible.
In the traditional mode, the number of times of photographing in focusing depends on specific implementation, but the final threshold value can enable the result to be accurate to the minimum precision of the focal length, although the focal length precision of the final result is adjusted to 25mm by the design, under the focusing evaluation function of the final Laplace operator, the error is below 0.1% under the photographing of each distance.
Meanwhile, from the speed aspect, the time required by the invention is almost fixed, and is 10 times of photographing time, while the photographing times of the traditional mode need 50 times in the worst case, and also need 17 times in the average case, namely, the photographing speed is improved by more than 40%. The calculation times of the focusing effect can be correspondingly shortened by the design, only four times of calculation is needed by using the simplest dichotomy, and the focusing function needs to be calculated by the traditional algorithm for each photographing.
Therefore, the time required by the single focusing is improved by more than 40 percent. But the present design requires an additional small amount of space to store the intermediate results.
Example 2: on the basis of the embodiment 1, the interval of 25mm in the design can be adjusted, and the interval can be adjusted from 5nm to 25 mm.
It will be evident to those skilled in the art that the invention is not limited to the details of the foregoing illustrative embodiments, and that the present invention may be embodied in other specific forms without departing from the spirit or essential attributes thereof. The present embodiments are therefore to be considered in all respects as illustrative and not restrictive, the scope of the invention being indicated by the appended claims rather than by the foregoing description, and all changes which come within the meaning and range of equivalency of the claims are therefore intended to be embraced therein. Any reference sign in a claim should not be construed as limiting the claim concerned.
Furthermore, it should be understood that although the present description refers to embodiments, not every embodiment may contain only a single embodiment, and such description is for clarity only, and those skilled in the art should integrate the description, and the embodiments may be combined as appropriate to form other embodiments understood by those skilled in the art.
Claims (6)
1. A method for accelerating focusing of a mobile phone is characterized by comprising the following specific steps: the method comprises the steps of collecting a plurality of pictures at a fixed image distance through a camera of the mobile phone, collecting all the pictures at an interval of 25mm, and selecting one of the pictures with the best focusing by using a focusing evaluation method as a final photographing result after the pictures are collected.
2. The method as claimed in claim 1, wherein the focus evaluation and evaluation method comprises a focus evaluation algorithm based on derivatives, statistics, histograms and instincts, and comprises evaluating some specially oriented or all pixels in a picture, performing statistical evaluation on its own characteristics or on the derivatives, variances, absolute differences and other data of its neighboring pixels, and performing a sum or maximum operation on the values obtained at all the evaluation points to obtain an evaluation of specific values of the focusing effect of a picture.
3. The method as claimed in claim 2, wherein the focus evaluation is performed by a mobile phoneThe formula adopted by the evaluation method isThis formula shows that the sum is calculated based on the derivative of the intensity of the gray values, where x and y represent two-dimensional coordinates of the image and i (x, y) represents the gray value of the corresponding pixel.
4. The method as claimed in claim 3, wherein the camera only needs to store the estimated value of the focusing algorithm and the prism group position of the previous picture during the focusing process, and compare the estimated value with the estimated value of the focusing algorithm of the current image.
5. The method as claimed in claim 4, wherein the image formed by the position of the prism set is displayed in real time in the camera or the mobile phone.
6. The method as claimed in claim 1, wherein the whole photographing time includes time required for adjusting focus, time required for acquiring image, and time required for calculating the result of focusing algorithm.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202011590736.0A CN112637506A (en) | 2020-12-29 | 2020-12-29 | Method for accelerating focusing of mobile phone |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202011590736.0A CN112637506A (en) | 2020-12-29 | 2020-12-29 | Method for accelerating focusing of mobile phone |
Publications (1)
Publication Number | Publication Date |
---|---|
CN112637506A true CN112637506A (en) | 2021-04-09 |
Family
ID=75285921
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202011590736.0A Pending CN112637506A (en) | 2020-12-29 | 2020-12-29 | Method for accelerating focusing of mobile phone |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN112637506A (en) |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102891966A (en) * | 2012-10-29 | 2013-01-23 | 珠海全志科技股份有限公司 | Focusing method and device for digital imaging device |
CN104618640A (en) * | 2014-12-30 | 2015-05-13 | 广东欧珀移动通信有限公司 | Photographing method and device |
CN105158892A (en) * | 2015-08-27 | 2015-12-16 | 镇江超纳仪器有限公司(中外合资) | Interference measurement rapid focusing realization method |
CN105338240A (en) * | 2014-08-12 | 2016-02-17 | 希姆通信息技术(上海)有限公司 | Shooting device and focusing method, device and system |
CN106990518A (en) * | 2017-04-17 | 2017-07-28 | 深圳大学 | A kind of blood film self-focusing micro imaging method |
-
2020
- 2020-12-29 CN CN202011590736.0A patent/CN112637506A/en active Pending
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102891966A (en) * | 2012-10-29 | 2013-01-23 | 珠海全志科技股份有限公司 | Focusing method and device for digital imaging device |
CN105338240A (en) * | 2014-08-12 | 2016-02-17 | 希姆通信息技术(上海)有限公司 | Shooting device and focusing method, device and system |
CN104618640A (en) * | 2014-12-30 | 2015-05-13 | 广东欧珀移动通信有限公司 | Photographing method and device |
CN105158892A (en) * | 2015-08-27 | 2015-12-16 | 镇江超纳仪器有限公司(中外合资) | Interference measurement rapid focusing realization method |
CN106990518A (en) * | 2017-04-17 | 2017-07-28 | 深圳大学 | A kind of blood film self-focusing micro imaging method |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US20230262324A1 (en) | Real time assessment of picture quality | |
EP3053332B1 (en) | Using a second camera to adjust settings of first camera | |
CN103384998B (en) | Imaging device and imaging method | |
WO2018153149A1 (en) | Automatic focusing method and apparatus based on region of interest | |
CN109714519B (en) | Method and system for automatically adjusting image frame | |
JP6509027B2 (en) | Object tracking device, optical apparatus, imaging device, control method of object tracking device, program | |
CN103119927B (en) | Image processing device, image capture device, and image processing method | |
US8520081B2 (en) | Imaging device and method, and image processing method for imaging device | |
US10298853B2 (en) | Image processing apparatus, method of controlling image processing apparatus, and imaging apparatus | |
CN101095340A (en) | Focal length detecting for image capture device | |
KR20130018330A (en) | Imaging apparatus, image processing method, and recording medium for recording program thereon | |
CN111917991B (en) | Image quality control method, device, equipment and storage medium | |
JP7378219B2 (en) | Imaging device, image processing device, control method, and program | |
CN113099135B (en) | Infrared image focusing, terminal device and computer readable storage medium | |
DE102018101035A1 (en) | IMAGE STABILIZATION DEVICE AND CONTROL METHOD THEREFOR, PICTURE RECORDING DEVICE AND STORAGE MEDIUM | |
CN104036471B (en) | A kind of picture noise estimation method and picture noise valuation device | |
CN109635800B (en) | Image focusing method and related equipment thereof | |
KR20170048720A (en) | Method and system for determining optimal exposure time and frequency of structured light based 3d camera | |
KR20140118031A (en) | Image processing apparatus and method thereof | |
EP3269135B1 (en) | Image processing method, image processing device, and image pickup apparatus | |
CN105657262B (en) | A kind of image processing method and device | |
US20220417414A1 (en) | High dynamic range image synthesis method and electronic device | |
Lin et al. | Motion blur removal and its application to vehicle speed detection | |
CN106981065A (en) | A kind of image Absolute Central Moment innovatory algorithm based on exposure compensating | |
CN112637506A (en) | Method for accelerating focusing of mobile phone |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20210409 |