CN101078857A - Real-time automatic focusing method - Google Patents

Real-time automatic focusing method Download PDF

Info

Publication number
CN101078857A
CN101078857A CN 200610080653 CN200610080653A CN101078857A CN 101078857 A CN101078857 A CN 101078857A CN 200610080653 CN200610080653 CN 200610080653 CN 200610080653 A CN200610080653 A CN 200610080653A CN 101078857 A CN101078857 A CN 101078857A
Authority
CN
China
Prior art keywords
focusing
real
correlative value
time
camera lens
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.)
Granted
Application number
CN 200610080653
Other languages
Chinese (zh)
Other versions
CN100533245C (en
Inventor
周存厚
蔡胜富
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
PULIER SCIENCE AND TECHNOLOGY Co Ltd
Premier Image Technology Corp
Original Assignee
PULIER SCIENCE AND TECHNOLOGY Co Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by PULIER SCIENCE AND TECHNOLOGY Co Ltd filed Critical PULIER SCIENCE AND TECHNOLOGY Co Ltd
Priority to CNB2006100806530A priority Critical patent/CN100533245C/en
Publication of CN101078857A publication Critical patent/CN101078857A/en
Application granted granted Critical
Publication of CN100533245C publication Critical patent/CN100533245C/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Studio Devices (AREA)
  • Automatic Focus Adjustment (AREA)

Abstract

The invention discloses a real-time auto focusing method, which comprises the following steps: (a) using auto exposure unit and auto white balance unit to judge whether to change the focusing environment; (b) calculating the contrast value according to the obtained frame from the sensor of the real-time auto focus if yes; (c) comparing the calculated contrast value with the former contrast value; judging whether the calculated contrast value is more than the former contrast value; (d) making the lens move towards certain direction if yes; or making the lens move towards another direction if not; (e) repeating the step (b)-(d) until the circulating number reaches the preset total circulating number.

Description

Automatic in real time method of focusing
Technical field
The present invention relates to the method for a kind of focus automatically in real time (real-time auto focus), relate in particular to a kind of can be when the user utilizes LCD to find a view, utilize the information that obtains in real time, and after calculating, with the action of controls lens, and the position the most clearly of finding image on sensor (sensor), to be presented.
Background technology
Nowadays, provide people to good times add in honour of mode have manyly, no matter and the highest real symbolic animal of the birth year sheet of frequency of utilization wherein is because be travelling, party or even all memorable moment, all can be by camera record in addition, for user's memory in the future.Moreover, have the image data of being about to take the photograph certainly in the use based on digital camera (digital camera) and transfer to the convenience of making an amendment processing in the electronic equipment (for example computing machine), add its price and gradually fall, so use the digital camera person day by day to increase.
Moreover, autofocus system (auto focus system) has been widely used in the middle of the digital camera now, its purpose is: allow the user need not adjust focal length voluntarily when taking pictures, but by the resulting information of digital camera, and the drive of cooperation motor, realizing correct focusing, and make that taking the photo that comes meets expectation.In addition, because most of digital camera product polygamy is equipped with LCD panel (panel) now, make the user convenient many when finding a view, therefore " focusing automatically in real time " (real-time autofocus) system promptly is in response to this new technology that mode developed out of finding a view.
Yet existing real-time autofocus system obviously has following several inconvenience and exists with disappearance on reality is used:
1, no matter whether the capture environment changes, set per 3 seconds usually and focus once automatically, therefore cause unnecessary power consumption;
When 2, focusing automatically each time, camera lens need be covered the focusing step number (step) that sets, and just can find out best focusing then, so focusing speed is slower, and can't reach the purpose of real " focusing in real time "; And
3, the number of the focusing step number that sets according to camera lens of the degree of accuracy of existing focusing automatically and decide, and under the consideration of speed, can't set more focusing step number usually, so can't carry out the fine setting of camera lens, and have influence on the degree of accuracy of automatic focusing.
Summary of the invention
In order to address the above problem, the invention provides the method for a kind of focus automatically in real time (real-time auto focus), it can do the action of focusing automatically when the user utilizes LCD to find a view, allow the user no matter when can on the LCD panel, see picture clearly, increase the success ratio of taking pictures.
Moreover major advantage of the present invention is:
1, because the value of calculating according to the resulting image information of sensor (sensor) (frame information) can both make camera lens move toward correct direction at every turn, therefore under effectively utilizing, focusing speed can reach certain level;
2, by the fine setting distance that each camera lens moved, can increase the accuracy of focusing speed and focusing simultaneously; And
3, utilize the focusing environment judging unit change of (it comprises a detecting automatic exposure AE, an Automatic white balance AWB and any device of judging whether the focusing environment changes), judge whether the focusing environment changes, to determine whether moving lens is focused again.
In order to solve the problems of the technologies described above, according to wherein a kind of scheme of the present invention, whether the method for a kind of focus automatically in real time (real-time auto focus) is provided, and its step comprises: (a) by a focusing environment judging unit of a real-time autofocus system, change to judge the focusing environment; (b) if the focusing environment changes, then start a counter (counter), and set N=0; (c) by the resulting picture of sensor (sensor) (frame) of this real-time autofocus system, to calculate correlative value (contrast value); (d) by this counter, the record cycle index equals 1 (N+1).
Then, (e) judge that whether this cycle index is greater than the global cycle number of times of being scheduled to; (f) if not, then by the resulting picture of sensor (sensor) (frame) of this real-time autofocus system, to calculate another correlative value; (g) this another correlative value and previous correlative value are compared, to judge that whether this another correlative value is greater than previous correlative value; (h) if yes, then make a camera lens move to a certain direction; Perhaps, if not, then make this camera lens move to other direction; (i), write down this cycle index and equal the last time cycle index and add 1 by this counter; And, (j) circulation of repeating step (e)~(i), up to this cycle index greater than the global cycle number of times of being scheduled to.
In order to solve the problems of the technologies described above, according to wherein a kind of scheme of the present invention, whether the method for a kind of focus automatically in real time (real-time auto focus) is provided, and its step comprises: (a) by a focusing environment judging unit of a real-time autofocus system, change to judge the focusing environment; (b) if yes, then by the resulting picture of sensor (sensor) (frame) of this real-time autofocus system, to calculate a correlative value (contrast value); (c) correlative value and the preceding correlative value of once being calculated that this calculated compared, to judge that whether the correlative value that is this time calculated is greater than the preceding correlative value of once being calculated; (d) if yes, then make a camera lens move to a certain direction; Perhaps, if not, then make this camera lens move to other direction; And (e) circulation of repeating step (b)~(d) reaches the global cycle number of being scheduled to up to period.
Describe the present invention below in conjunction with the drawings and specific embodiments, but not as a limitation of the invention.
Description of drawings
Fig. 1 is the process flow diagram of the present invention's automatic in real time focus (real-time auto focus) method.
Embodiment
See also shown in Figure 1ly, the invention provides a kind of method of focusing (real-time auto focus) in real time automatically, its step comprises: at first, and by the action (S100) of finding a view of the LCD panel of a digital camera; Then, focusing environment judging unit by a real-time autofocus system, to judge whether the focusing environment changes (S102), and wherein this focusing environment judging unit comprises: an automatic exposure unit (auto exposureunit), an Automatic white balance unit (auto white balance unit) and any device of judging whether the focusing environment changes.Then, if the focusing environment does not change, then continue execution in step S100; If the focusing environment changes, then start a counter (counter), and set N=0 (S104).
Moreover, by the resulting picture of sensor (sensor) (frame) of this real-time autofocus system, to calculate correlative value (contrast value) (S106); Next, by this counter, the record cycle index equals 1 (N+1) (S108) then, judges that whether this cycle index is greater than the global cycle number of times of being scheduled to (S110).If yes, then get back to step S100, continue to find a view; If not, then by the resulting picture of sensor (sensor) (frame) of this real-time autofocus system, to calculate another correlative value (S112).
And then, this another correlative value and previous correlative value are compared, to judge that whether this another correlative value is greater than previous correlative value (S114).If yes, then make a camera lens move (S116) to a certain direction; If not, then make a camera lens move (S118) to other direction, wherein this camera lens drives by a motor; Then, by this counter, write down this cycle index and equal the last time cycle index and add 1 (S120), for example: this time cycle index is 1 (cycle index last time)+1=2, and next cycle index is 2 (cycle index last time)+1=3, and the rest may be inferred then; Next, the circulation of repeating step S110~S120, up to this cycle index greater than the global cycle number of times of being scheduled to.That is, every completing steps S110~S120, this cycle index increases by 1 time, up to this cycle index greater than the global cycle number of times of being scheduled to.
In sum, when the user finds a view with LCD, autofocus system can utilize this focusing environment judging unit (" detecting automatic exposure " AE earlier in real time, " Automatic white balance " AWB and anyly judge the device that whether changes of focusing environment) institute's acquired information goes to check whether present environment changes, to judge whether mobile camera of user, and when judging user's mobile camera, then representative needs the object of focusing to change, at this moment then enter the circulation of a moving lens, be example for example to move 12 times, before each moving, system obtains picture (frame) from sensor earlier, and then calculating correlative value (contrast value), and value and previous value after this is calculated make comparisons, and increases progressively if correlative value presents, and represents that then image is also more clear, it is mobile that this moment, camera lens just continued previous moving direction continuation, but if correlative value presents and successively decreases, then camera lens is toward moving in the other direction, so repeatedly up to loop ends.
Certainly; the present invention also can have other various embodiments; under the situation that does not deviate from spirit of the present invention and essence thereof; those of ordinary skill in the art work as can make various corresponding changes and distortion according to the present invention, but these corresponding changes and distortion all should belong to the protection domain of the appended claim of the present invention.

Claims (8)

1, a kind of method of focusing automatically in real time is characterized in that, comprises the following steps:
(a) by a focusing environment judging unit of a real-time autofocus system, whether change to judge the focusing environment;
(b) if the focusing environment changes, then start a counter, and set N=O;
(c) by the resulting picture of the sensor of this real-time autofocus system, to calculate correlative value;
(d) by this counter, the record cycle index equals 1 (N+1);
(e) judge that whether this cycle index is greater than the global cycle number of times of being scheduled to;
(f) if not, then by the resulting picture of the sensor of this real-time autofocus system, to calculate another correlative value;
(g) this another correlative value and previous correlative value are compared, to judge that whether this another correlative value is greater than previous correlative value;
(h) if yes, then make a camera lens move to a certain direction; Perhaps, if not, then make this camera lens move to other direction;
(i), write down this cycle index and equal the last time cycle index and add 1 by this counter; And
(j) circulation of repeating step (e)~(i), up to this cycle index greater than the global cycle number of times of being scheduled to.
2, method of focusing automatically in real time according to claim 1, it is characterized in that: this camera lens drives by a motor.
3, the method for focusing in real time automatically according to claim 1 is characterized in that, also further comprises: one finishes round-robin counter several times in order to calculating.
4, method of focusing automatically in real time according to claim 1, it is characterized in that: this focusing environment judging unit comprises an automatic exposure unit and an Automatic white balance unit.
5, a kind of method of focusing automatically in real time is characterized in that, comprises the following steps:
(a) by a focusing environment judging unit of a real-time autofocus system, whether change to judge the focusing environment;
(b) if yes, then by the resulting picture of the sensor of this real-time autofocus system, to calculate a correlative value;
(c) correlative value and the preceding correlative value of once being calculated that this calculated compared, to judge that whether the correlative value that is this time calculated is greater than the preceding correlative value of once being calculated;
(d) if yes, then make a camera lens move to a certain direction; Perhaps, if not, then make this camera lens move to other direction; And
(e) circulation of repeating step (b)~(d) reaches the global cycle number of being scheduled to up to period.
6, method of focusing automatically in real time according to claim 5, it is characterized in that: this camera lens drives by a motor.
7, the method for focusing in real time automatically according to claim 5 is characterized in that, also further comprises: one finishes round-robin counter several times in order to calculating.
8, method of focusing automatically in real time according to claim 5, it is characterized in that: this focusing environment judging unit comprises an automatic exposure unit and an Automatic white balance unit.
CNB2006100806530A 2006-05-23 2006-05-23 Real-time automatic focusing method Expired - Fee Related CN100533245C (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CNB2006100806530A CN100533245C (en) 2006-05-23 2006-05-23 Real-time automatic focusing method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CNB2006100806530A CN100533245C (en) 2006-05-23 2006-05-23 Real-time automatic focusing method

Publications (2)

Publication Number Publication Date
CN101078857A true CN101078857A (en) 2007-11-28
CN100533245C CN100533245C (en) 2009-08-26

Family

ID=38906390

Family Applications (1)

Application Number Title Priority Date Filing Date
CNB2006100806530A Expired - Fee Related CN100533245C (en) 2006-05-23 2006-05-23 Real-time automatic focusing method

Country Status (1)

Country Link
CN (1) CN100533245C (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102271277A (en) * 2011-01-17 2011-12-07 深圳市保千里电子有限公司 Method and device for correcting error of motor in video camera
US8149323B2 (en) 2008-12-18 2012-04-03 Qualcomm Incorporated System and method to autofocus assisted by autoexposure control
CN104678679A (en) * 2015-03-30 2015-06-03 信利光电股份有限公司 Shooting device and auto-focusing module thereof
CN105657278A (en) * 2016-02-29 2016-06-08 广东欧珀移动通信有限公司 Control method, control device and electronic device
CN112637504A (en) * 2020-12-23 2021-04-09 维沃移动通信有限公司 Focusing method and device
CN113114947A (en) * 2021-04-20 2021-07-13 重庆紫光华山智安科技有限公司 Focusing adjustment method and device, electronic equipment and storage medium

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1137409C (en) * 1998-03-25 2004-02-04 全友电脑股份有限公司 Automatic focusing method
CN1304901C (en) * 2001-10-31 2007-03-14 金宝电子工业股份有限公司 Automatic focusing method of camera
JP2004109358A (en) * 2002-09-17 2004-04-08 Pentax Corp Contrast detection type auto-focusing device and focusing position detecting method
CN1690833A (en) * 2004-04-20 2005-11-02 鸿富锦精密工业(深圳)有限公司 Automatic focusing method for digital camera

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8149323B2 (en) 2008-12-18 2012-04-03 Qualcomm Incorporated System and method to autofocus assisted by autoexposure control
CN102271277A (en) * 2011-01-17 2011-12-07 深圳市保千里电子有限公司 Method and device for correcting error of motor in video camera
CN102271277B (en) * 2011-01-17 2012-07-04 深圳市保千里电子有限公司 Method and device for correcting error of motor in video camera
CN104678679A (en) * 2015-03-30 2015-06-03 信利光电股份有限公司 Shooting device and auto-focusing module thereof
CN105657278A (en) * 2016-02-29 2016-06-08 广东欧珀移动通信有限公司 Control method, control device and electronic device
CN112637504A (en) * 2020-12-23 2021-04-09 维沃移动通信有限公司 Focusing method and device
CN112637504B (en) * 2020-12-23 2022-05-03 维沃移动通信有限公司 Focusing method and device
CN113114947A (en) * 2021-04-20 2021-07-13 重庆紫光华山智安科技有限公司 Focusing adjustment method and device, electronic equipment and storage medium

Also Published As

Publication number Publication date
CN100533245C (en) 2009-08-26

Similar Documents

Publication Publication Date Title
WO2020259179A1 (en) Focusing method, electronic device, and computer readable storage medium
JP4664379B2 (en) Electronic device and image data processing method for image data processing
US9501834B2 (en) Image capture for later refocusing or focus-manipulation
CN100533245C (en) Real-time automatic focusing method
EP3627821B1 (en) Focusing method and apparatus for realizing clear human face, and computer device
JP5088118B2 (en) Focus adjustment device
US20080192139A1 (en) Image Capture Method and Image Capture Device
EP2273450A2 (en) Target tracking apparatus, image tracking apparatus, methods of controlling operation of same, and digital camera
CN101047792A (en) Image processing device, image processing method and imaging device
KR20100069579A (en) Main face choosing device, method for controlling same, and image capturing apparatus
JP5299912B2 (en) Imaging device and data structure of image file
WO2005106796A2 (en) Focal length detecting for image capture device
CN101144959B (en) Automatic focusing method for camera and digital camera
CN104079812A (en) Method and device of acquiring image information
CN103809348B (en) It is applied to the automatic focusing method of camera model
CN105592258B (en) Auto focusing method and device
CN101000451A (en) Automatic viecofinding support device and method
CN113923347A (en) Automatic focusing method and device, shooting terminal and computer readable storage medium
US20060002700A1 (en) Image pickup apparatus with precise exposure value, exposure decision method, program, and storage medium
US7486880B2 (en) Camera device capable of changing range-finding area
CN110933304A (en) Method and device for determining to-be-blurred region, storage medium and terminal equipment
US8340431B2 (en) Automatic photographing method with face recognition
JPH11331676A (en) Automatic focus controller
TWI337498B (en) Image capturing device and auto-focus method
WO2022269999A1 (en) Control device, control method, and program

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20090826

Termination date: 20150523

EXPY Termination of patent right or utility model