CN101625452B - Automatic focusing method, automatic focusing device and digital camera device - Google Patents
Automatic focusing method, automatic focusing device and digital camera device Download PDFInfo
- Publication number
- CN101625452B CN101625452B CN2009101079984A CN200910107998A CN101625452B CN 101625452 B CN101625452 B CN 101625452B CN 2009101079984 A CN2009101079984 A CN 2009101079984A CN 200910107998 A CN200910107998 A CN 200910107998A CN 101625452 B CN101625452 B CN 101625452B
- Authority
- CN
- China
- Prior art keywords
- window
- edge gradient
- theme
- focus value
- pinpointed focus
- 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.)
- Expired - Fee Related
Links
Images
Abstract
The invention discloses an automatic focusing method, an automatic focusing device and a digital camera device. The automatic focusing method comprises the following steps: adopting a predetermined window to scan image frames; extracting margin gradients of images in windows at different scanning positions; obtaining the assemblages of the margin gradients in the windows; comparing the margin gradient assemblages of the windows, and determining the window with the maximum margin gradient assemblage as a theme window; and obtaining an optimum focusing value on a basis of the theme window. The invention adopts the margin extraction method to obtain the optimum focusing value, and the obtained optimum focusing value is more accurate and has higher focusing accuracy.
Description
Technical field
The present invention relates to the automatic focus technology of digital camera.
Background technology
Automatic focus is very important function in present various digital camera, the digital camera.Automatic focus is to utilize optical system imaging on imageing sensor, the optical information of image itself is converted to electric signal, goes out automatic focus value, go drive motor to come moving lens with this automatic focus value by certain algorithm computation, focus, thereby obtain distinct image.In the existing focus method, it mostly is the method that adopts simulation, the centre that is about to picture frame is set to window, extract the radio-frequency component of image, constantly change the depth of field, when high fdrequency component reaches maximum, focus on exactly best the time, but the pinpointed focus that adopts this method to calculate is accurate inadequately.
Summary of the invention
The main technical problem to be solved in the present invention is, a kind of auto focusing method and device are provided, and makes focusing more accurate.
For solving the problems of the technologies described above, the invention provides a kind of auto focusing method, may further comprise the steps:
Adopt preset window scintigram picture frame;
The edge gradient of image in the window of extraction different scanning position;
Obtain the set of the edge gradient in each window;
Relatively the edge gradient of each window is gathered, and the maximum window of edge gradient set is defined as the theme window;
Obtain the pinpointed focus value at the theme window, comprising:
Focus at the theme window; Calculate the set of the edge gradient in the theme window under each focal length;
Obtain the maximal value of the edge gradient set in the theme window, and the focal length of described maximal value correspondence is defined as the pinpointed focus value.
For solving the problems of the technologies described above, the present invention also provides a kind of automatic focusing system, comprising: scanning element is used to adopt preset window scintigram picture frame; The side information extraction unit is used for extracting edge gradient at each window; The set acquiring unit is used for obtaining the set of the edge gradient of each window; Theme window determining unit is used for the edge gradient set of each window of comparison and the maximum window of edge gradient set is defined as the theme window; Pinpointed focus value acquiring unit, be used for obtaining the pinpointed focus value at the theme window, specifically be used for focusing at the theme window, calculate the set of the edge gradient in the theme window under each focal length, obtain the maximal value of the edge gradient set in the theme window, and the focal length of described maximal value correspondence is defined as the pinpointed focus value.
The present invention also provides a kind of digital camera, comprising: lens subassembly is used for by the running transform focal length; Imageing sensor is used to receive the light signal that passes lens subassembly, converts light signal to electric signal, and output image data; Automatic focusing system, be used to receive view data from imageing sensor, carry out auto-focusing algorithm, to obtain the pinpointed focus value, be specially: described pinpointed focus value acquiring unit is focused at the theme window, calculate the set of the edge gradient in the theme window under each focal length, obtain the maximal value of the edge gradient set in the theme window, and the focal length of described maximal value correspondence is defined as the pinpointed focus value; The lens adjustment assembly is used for the position according to pinpointed focus value adjusting lens subassembly, to realize focusing.
Described automatic focusing system comprises: scanning element is used to adopt preset window scintigram picture frame; The side information extraction unit is used for extracting edge gradient at each window; The set acquiring unit is used for obtaining the set of the edge gradient of each window; Theme window determining unit is used for the edge gradient set of each window of comparison and the maximum window of edge gradient set is defined as the theme window; Pinpointed focus value acquiring unit, be used for obtaining the pinpointed focus value at the theme window, being specially described pinpointed focus value acquiring unit focuses at the theme window, calculate the set of the edge gradient in the theme window under each focal length, obtain the maximal value of the edge gradient set in the theme window, and the focal length of described maximal value correspondence is defined as the pinpointed focus value.
The present invention adopts the edge extracting method to obtain the pinpointed focus value, compares with high fdrequency component method of the prior art, and the pinpointed focus value that obtains is more accurate, and focusing accuracy is higher.
Description of drawings
Fig. 1 is the structural representation of digital camera or digital camera;
Fig. 2 is the functional-block diagram of an embodiment of the present invention;
Fig. 3 is the process flow diagram of an embodiment of the present invention;
Fig. 4 is the theme window synoptic diagram of an embodiment of the present invention.
Embodiment
In conjunction with the accompanying drawings the present invention is described in further detail below by embodiment.
Please refer to Fig. 1, digital camera 100 comprises lens subassembly 110, imageing sensor 120, automatic focusing system 130 and lens adjustment assembly 140, and lens subassembly 110 is used for comprising condenser lens by moving the conversion focal length.Imageing sensor 120 is used to receive the light signal that passes lens subassembly 110, converts light signal to electric signal, and output image data.Imageing sensor 120 can be ccd image sensor or cmos image sensor.Automatic focusing system 130 is used to receive the view data from imageing sensor 120, carries out auto-focusing algorithm, to obtain the pinpointed focus value.Lens adjustment assembly 140 is used for regulating according to the pinpointed focus value position of lens subassembly, to realize focusing.Lens adjustment assembly 140 can comprise CD-ROM drive motor and/or lens actuators.Digital camera 100 can be digital camera or digital camera.
Please refer to Fig. 2, in one embodiment, automatic focusing system 130 comprises scanning element 131, side information extraction unit 132, set acquiring unit 133, theme window determining unit 134 and pinpointed focus value acquiring unit 135.Scanning element 131 is used for adopting on the picture frame that view data generates preset window to scan, side information extraction unit 132 is used for extracting edge gradient at each window, set acquiring unit 133 is used for obtaining the set of the edge gradient of each window, theme window determining unit 134 is used for the edge gradient set of each window of comparison and the maximum window of edge gradient set is defined as the theme window, and pinpointed focus value acquiring unit 135 is used for obtaining the pinpointed focus value at the theme window.Described pinpointed focus value acquiring unit 135 is used for focusing at the theme window, calculate the set of the edge gradient in the theme window under every kind of focal length, obtain the maximal value of the edge gradient set in the theme window, and the focal length of described maximal value correspondence is defined as the pinpointed focus value.
Because image is the most clearly the time, be actually the image border the most clearly the time, therefore the embodiment of the invention is when calculating self-focusing pinpointed focus value, automatically determine a theme window earlier, in this theme window, the edge gradient of image is the most remarkable, and then focuses based on this theme window, obtains the pinpointed focus value.
Generally, a window can be set on the display screen of digital camera, to the image in this window by certain algorithm computation focal length.In embodiments of the present invention, adopt this window, the scanning of for example lining by line scan from left to right, or the center convolution shape of outside the center begins gradually, moving in the enterprising line scanning of picture frame.Constantly extract the edge gradient of the image in the window in scanning, the extracting method of edge gradient can adopt prior art.Calculate the edge gradient set in the window of each scanning position, the relatively edge gradient of each window set, and the maximum window of edge gradient set is defined as the theme window, determine the theme window after, obtain the pinpointed focus value at the theme window.
Based on the auto focusing method of above-mentioned digital camera as shown in Figure 3, may further comprise the steps:
Focus at the theme window.Lens subassembly is the shift position under the control of lens adjustment assembly, thus the conversion focal length.
Calculate the set of the edge gradient in the theme window under each focal length.
Obtain the maximal value of the edge gradient set in the theme window, and the focal length of described maximal value correspondence is defined as the pinpointed focus value.
Regulate the position of lens subassembly according to the pinpointed focus value that calculates, be located at position theme window focal length the best.
In sum, the present invention determines the theme window by side information, comes the calculating optimum focal length based on the theme window of determining then, and the pinpointed focus ratio of precision that this auto focusing method calculates is higher, helps photographing clearly image.In improved plan, high power according to the edge gradient information of theme window carries out focus adjustment, emphasized to maximization edge gradient (side information just), edge gradient is highlighted, more favourable with utilize side information to obtain theme window and optimum focusing value, further improved focusing accuracy.
Above content be in conjunction with concrete embodiment to further describing that the present invention did, can not assert that concrete enforcement of the present invention is confined to these explanations.For the general technical staff of the technical field of the invention, without departing from the inventive concept of the premise, can also make some simple deduction or replace, all should be considered as belonging to protection scope of the present invention.
Claims (8)
1. an auto focusing method is characterized in that comprising,
Adopt preset window scintigram picture frame;
The edge gradient of image in the window of extraction different scanning position;
Obtain the set of the edge gradient in each window;
Relatively the edge gradient of each window is gathered, and the maximum window of edge gradient set is defined as the theme window;
Obtain the pinpointed focus value at the theme window, comprising:
Focus at the theme window;
Calculate the set of the edge gradient in the theme window under each focal length;
Obtain the maximal value of the edge gradient set in the theme window, and the focal length of described maximal value correspondence is defined as the pinpointed focus value.
2. the method for claim 1 is characterized in that, described preset window scintigram picture frame comprises lines by line scan or the scanning of center convolution shape.
3. method as claimed in claim 1 or 2 is characterized in that, the set of described edge gradient is the summation of the edge gradient in each window, or the high power summation of described edge gradient set after for the edge gradient delivery in each window.
4. method as claimed in claim 3 is characterized in that, described high power is 3 powers or 4 powers.
5. an automatic focusing system is characterized in that comprising,
Scanning element is used to adopt preset window scintigram picture frame;
The side information extraction unit is used for extracting edge gradient at each window;
The set acquiring unit is used for obtaining the set of the edge gradient of each window;
Theme window determining unit is used for the edge gradient set of each window of comparison and the maximum window of edge gradient set is defined as the theme window;
Pinpointed focus value acquiring unit, be used for obtaining the pinpointed focus value at the theme window, specifically be used for focusing at the theme window, calculate the set of the edge gradient in the theme window under each focal length, obtain the maximal value of the edge gradient set in the theme window, and the focal length of described maximal value correspondence is defined as the pinpointed focus value.
6. automatic focusing system as claimed in claim 5 is characterized in that, described scanning element employing is lined by line scan or center convolution shape is scanned in the enterprising line scanning of picture frame.
7. as claim 5 or 6 described automatic focusing system, it is characterized in that the set of described edge gradient is the summation of the edge gradient in each window, or the high power summation of described edge gradient set after for the edge gradient delivery in each window.
8. a digital camera is characterized in that comprising,
Lens subassembly is used for by the running transform focal length;
Imageing sensor is used to receive the light signal that passes lens subassembly, converts light signal to electric signal, and output image data;
Automatic focusing system is used to receive the view data from imageing sensor, carries out auto-focusing algorithm, to obtain the pinpointed focus value; Described automatic focusing system comprises:
Scanning element is used to adopt preset window scintigram picture frame;
The side information extraction unit is used for extracting edge gradient at each window;
The set acquiring unit is used for obtaining the set of the edge gradient of each window;
Theme window determining unit is used for the edge gradient set of each window of comparison and the maximum window of edge gradient set is defined as the theme window;
Pinpointed focus value acquiring unit, be used for obtaining the pinpointed focus value at the theme window, specifically be used for focusing at the theme window, calculate the set of the edge gradient in the theme window under each focal length, obtain the maximal value of the edge gradient set in the theme window, and the focal length of described maximal value correspondence is defined as the pinpointed focus value;
The lens adjustment assembly is used for the position according to pinpointed focus value adjusting lens subassembly, to realize focusing.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN2009101079984A CN101625452B (en) | 2009-06-19 | 2009-06-19 | Automatic focusing method, automatic focusing device and digital camera device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN2009101079984A CN101625452B (en) | 2009-06-19 | 2009-06-19 | Automatic focusing method, automatic focusing device and digital camera device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN101625452A CN101625452A (en) | 2010-01-13 |
CN101625452B true CN101625452B (en) | 2011-03-02 |
Family
ID=41521354
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN2009101079984A Expired - Fee Related CN101625452B (en) | 2009-06-19 | 2009-06-19 | Automatic focusing method, automatic focusing device and digital camera device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN101625452B (en) |
Families Citing this family (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102368134B (en) * | 2011-10-05 | 2013-11-13 | 深圳市联德合微电子有限公司 | Automatic focusing method of cell phone camera module, apparatus thereof and system thereof |
WO2016045086A1 (en) | 2014-09-26 | 2016-03-31 | SZ DJI Technology Co., Ltd. | System and method for automatic focusing based on statistic data |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1892401A (en) * | 2006-05-25 | 2007-01-10 | 南京大学 | Multi-stage automatic focusing method according to time-frequency domain catched by iris picture |
US20090102963A1 (en) * | 2007-10-22 | 2009-04-23 | Yunn-En Yeo | Auto-focus image system |
-
2009
- 2009-06-19 CN CN2009101079984A patent/CN101625452B/en not_active Expired - Fee Related
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1892401A (en) * | 2006-05-25 | 2007-01-10 | 南京大学 | Multi-stage automatic focusing method according to time-frequency domain catched by iris picture |
US20090102963A1 (en) * | 2007-10-22 | 2009-04-23 | Yunn-En Yeo | Auto-focus image system |
Non-Patent Citations (3)
Title |
---|
JP特开2003-344751A 2003.12.03 |
JP特开2004-242010A 2004.08.26 |
冯华君等.一种用于数字成像的自动对焦系统.《光电工程》.2004,第31卷(第10期),全文. * |
Also Published As
Publication number | Publication date |
---|---|
CN101625452A (en) | 2010-01-13 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
KR101278241B1 (en) | Photographing apparatus and photographing method | |
US8106999B2 (en) | Focus adjustment apparatus, method, and program | |
JP5609270B2 (en) | IMAGING DEVICE, IMAGING SYSTEM, IMAGING DEVICE CONTROL METHOD, AND PROGRAM | |
KR101756839B1 (en) | Digital photographing apparatus and control method thereof | |
US7583308B2 (en) | Image capturing apparatus | |
CN102984530A (en) | Image processing system and automatic focusing method | |
US11831979B2 (en) | Image pickup apparatus, an image processing method and a non-transitory computer-readable medium for displaying a plurality of images different in in-focus position | |
US8855479B2 (en) | Imaging apparatus and method for controlling same | |
US20100026819A1 (en) | Method and apparatus for compensating for motion of an autofocus area, and autofocusing method and apparatus using the same | |
JP3902492B2 (en) | Imaging device | |
KR20100134329A (en) | A digital photographing apparatus, a method for controlling the same, and a computer-readable storage medium to executing the method | |
US9485407B2 (en) | Method of capturing images and obtaining information of the images | |
JP2009258610A (en) | Focal length detecting device, imaging apparatus, imaging method, camera, focusing device, and focusing method | |
CN102244727B (en) | Image pickup apparatus | |
US9591202B2 (en) | Image processing apparatus and image processing method for generating recomposed images | |
CN101625452B (en) | Automatic focusing method, automatic focusing device and digital camera device | |
JP2009069740A (en) | Image pickup device | |
KR102061087B1 (en) | Method, apparatus and program stored in storage medium for focusing for video projector | |
JP5980166B2 (en) | Imaging apparatus and autofocus control method | |
JP2012220890A (en) | Focus adjustment device | |
JP2009232348A (en) | Imaging apparatus, distance information acquiring method, image processing method, and drive control method of optical system | |
KR100819807B1 (en) | Image pickup apparatus and method of picking up images | |
JP2008263386A (en) | Still image pickup apparatus | |
KR20100056266A (en) | Photographing apparatus and method for focusing | |
KR20100099556A (en) | Photographing apparatus and method of processing image in photographing apparatus |
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 | ||
C56 | Change in the name or address of the patentee | ||
CP02 | Change in the address of a patent holder |
Address after: Guangdong city of Shenzhen province Futian District 518040 building, 2301 Che Kung Temple Zhenye exhibition industry 2302, 2303, 2304, 2305, 2306 Patentee after: Shenzhen Wision Technology Holdings Co., Ltd. Address before: Nine road 518040 Guangdong city of Shenzhen province Futian District deep South and south-east of the junction with Jinrun building 26A Patentee before: Shenzhen Wision Technology Holdings Co., Ltd. |
|
CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20110302 Termination date: 20180619 |
|
CF01 | Termination of patent right due to non-payment of annual fee |