CN105573016A - Adjustment method and adjustment system for automatic focusing window - Google Patents

Adjustment method and adjustment system for automatic focusing window Download PDF

Info

Publication number
CN105573016A
CN105573016A CN201510974527.9A CN201510974527A CN105573016A CN 105573016 A CN105573016 A CN 105573016A CN 201510974527 A CN201510974527 A CN 201510974527A CN 105573016 A CN105573016 A CN 105573016A
Authority
CN
China
Prior art keywords
focusing window
focusing
image
new
window
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
CN201510974527.9A
Other languages
Chinese (zh)
Other versions
CN105573016B (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.)
Zhejiang University ZJU
Original Assignee
Zhejiang University ZJU
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 Zhejiang University ZJU filed Critical Zhejiang University ZJU
Priority to CN201510974527.9A priority Critical patent/CN105573016B/en
Publication of CN105573016A publication Critical patent/CN105573016A/en
Application granted granted Critical
Publication of CN105573016B publication Critical patent/CN105573016B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G03PHOTOGRAPHY; CINEMATOGRAPHY; ANALOGOUS TECHNIQUES USING WAVES OTHER THAN OPTICAL WAVES; ELECTROGRAPHY; HOLOGRAPHY
    • G03BAPPARATUS OR ARRANGEMENTS FOR TAKING PHOTOGRAPHS OR FOR PROJECTING OR VIEWING THEM; APPARATUS OR ARRANGEMENTS EMPLOYING ANALOGOUS TECHNIQUES USING WAVES OTHER THAN OPTICAL WAVES; ACCESSORIES THEREFOR
    • G03B13/00Viewfinders; Focusing aids for cameras; Means for focusing for cameras; Autofocus systems for cameras
    • G03B13/18Focusing aids

Abstract

The invention discloses an adjustment method and an adjustment system for an automatic focusing window. An initial focusing window is determined based on a region of interest. The field angle at each edge point of the focusing window is calculated according to the image height and the image distance of the edge point. During the focusing process, when the lens position is changed, a new image distance is obtained based on a new lens position. The image height of the edge point in a new focusing window is obtained according to the new image distance and the initial field angle of the edge point of the focusing window, so that the new focusing window is formed. The edge part of the new focusing wind, which exceeds the edge of an image receiving surface, is replaced by the edge of the present image. According to the technical scheme of the invention, the image drifting problem due to the variation of the magnifying power during the automatic focusing process of a digital camera can be solved. Meanwhile, the image drift distance caused due to the variation of the magnifying power can be calculated quickly in the object distance-unknown condition, so that the focusing window can be adjusted. Therefore, the photographic field following effect is realized. The method is not influenced by the fuzziness degree of images, and is simple in calculation and good in robustness.

Description

A kind of auto-focusing window method of adjustment and system
Technical field
The invention belongs to digital imaging technology field, relate to a kind of auto-focusing window method of adjustment and system.
Background technology
In digital camera auto-focus process, usually in viewfinder, select interested region to be focusing window by user, then by camera, focusing evaluation is carried out to the image in focusing window, thus judge best focus position.But as shown in Figure 1, movable along with camera lens in focus process, imaging magnification changes, and in the focusing window causing user to input, the picture of scenery drifts about, thus generation focus target is inconsistent, the problem such as inaccurate of focusing.
The drift generally not considering picture caused by magnification change in focus process selected by traditional auto-focusing window, in quiet scape shooting, no longer changes after focusing window is selected.
Can be used for solving one of prior art of the picture generation drift of scenery in focusing window is at present moving subjects tracking technique.First this kind of technology goes out the physical feature matched in adjacent two two field pictures based on Computer Vision Detection, then calculate the displacement of moving subjects, and then makes corresponding adjustment to focusing window, realizes moving subjects and follows the tracks of.The shortcoming of this kind of technology is one side calculation of complex, poor for its robustness of image that fuzzy quantity is large on the other hand, is difficult to realization character coupling.
Therefore, prior art lack a kind of targetedly, fast, sane solution.
Summary of the invention
In order to solve Problems existing in background technology, the present invention proposes a kind of auto-focusing window method of adjustment and system, solving the technical matters that magnification change in focus process causes the picture drift of object scene.
The technical solution used in the present invention is as follows:
One, magnification change causes an auto-focusing window method of adjustment for picture drift, comprises the following steps as shown in Figure 4:
1) initial focusing window is determined by area-of-interest;
2) for every bit on initial focusing window border, its field angle is calculated by the image height of each point and image distance;
3) in focus process, lens location upgrades focusing window when changing in the following ways: obtain new image distance by new lens location, the image height obtaining new focusing window frontier point is calculated respectively by the field angle of new image distance and initial each frontier point of focusing window, connect these frontier points, form new focusing window, thus realize following the image drifted about.
Described lens location change refers to the movement of camera lens along optical axis axis.Focusing window border changes with lens location, has nothing to do with picture material itself.
If new focusing window border exceeds the border of image-receptive, the part place image boundary that new focusing window border exceeds image-receptive border replaces, and namely gives up in focusing window and exceeds image boundary part.
Described initial focusing window shape, size, position all select change according to user.
Described step 2) middle Arbitrary Boundaries point S 1field angle θ adopt following formulae discovery:
θ = tan - 1 ( h 1 d 1 ) - - - ( 3 )
Wherein, h 1for frontier point S 1image height, d 1be the image distance of frontier point during the first two field picture, i.e. the image distance of initial focusing window.
Described step 3) in new focusing window frontier point S 2image height h 2adopt following formulae discovery:
h 2=d 2·tanθ(4)
Wherein, d 2for new image distance, θ is initial focusing window frontier point S 1field angle.
The inventive method for be in digital camera auto-focus process magnification change cause picture drift problem.
Two, a kind of magnification change causes the auto-focusing window adjustment System of picture drift:
As shown in Figure 5, comprise focusing evaluation module, camera lens, lens driving module and search module, also comprise the focusing window computing module respectively with focusing evaluation module and lens driving model calling, the initial focusing window of user's input is transferred to focusing window computing module, focusing window computing module receives the image distance data that lens driving module transfer is come, and obtain new focusing window in conjunction with the image height process in initial focusing window, finally new focusing window is input in focusing evaluation module.
Described lens driving module is the motor for driving camera lens to move forward and backward along optical axis.
Described focusing evaluation module carries out focusing evaluation according to the new focusing window that focusing window computing module sends, and evaluation result is sent to search module, by the displacement of search module determination camera lens, controls lens driving module moving lens.
In prior art, as shown in Figure 3, the inventive method relates to the adjustment of wherein focusing window to the Atomatic focusing method flow process of focusing window change.As shown in Figure 1, existing digital camera, when focusing, makes focus target become sharply defined image on fixing image-receptive by movable camera lens, and this focusing mode makes to calculate the picture drift value caused by magnification when unknown material distance.The inventive method moves the focusing model of change along optical axis direction mainly for camera lens shown in Fig. 1, obtain the model of image-receptive movement as shown in Figure 2 after simplification.The simplification focusing model of Fig. 2 of the present invention, its main thought is that the movement of camera lens in focusing model is replaced with the movement of image-receptive, can calculate picture drift value fast, thus adjust focusing window, realize scenery and follow according to this model.
The invention has the beneficial effects as follows:
The present invention includes a kind of focusing model of simplification, based on this model can calculate fast, steadily picture drift value, thus realize focusing window follow object scene adjustment.
The present invention can obtain picture drift value when unknown material distance, and then adjustment focusing window, realizes scenery and follows.The inventive method has nothing to do with picture material itself, not by the impact of image blurring degree, has and calculates simply, the advantages such as robustness is good.
Accompanying drawing explanation
By the detailed description below in conjunction with accompanying drawing, above and other aspect of the present invention, feature and advantage will be more clearly understood, wherein:
Fig. 1 is the focusing model that camera lens position changes;
Fig. 2 is simplification used in the present invention focusing model;
Fig. 3 is the Atomatic focusing method process flow diagram of focusing window change;
Fig. 4 is the inventive method focusing window adjustment process flow diagram;
Fig. 5 is present system model calling graph of a relation;
Fig. 6 is the initial focusing window that the embodiment of the present invention works as when lens location changes continuously;
Fig. 7 is the trace performance image that the embodiment of the present invention works as one of state when lens location changes continuously;
Fig. 8 is the trace performance image that the embodiment of the present invention works as state two when lens location changes continuously;
Fig. 9 is the trace performance image that the embodiment of the present invention works as state three when lens location changes continuously;
Figure 10 is the trace performance image that the embodiment of the present invention works as state four when lens location changes continuously;
Figure 11 is the trace performance image that the embodiment of the present invention works as state five when lens location changes continuously;
Figure 12 is that the embodiment of the present invention works as object scene close to initial focusing window during image border
Figure 13 is the trace performance image that the embodiment of the present invention works as one of state when object scene floats to outside image.
Figure 14 is the trace performance image that the embodiment of the present invention works as state two when object scene floats to outside image.
In figure: 1, image-receptive, 2, camera lens.
Embodiment
Exemplary embodiment of the present invention is described in detail now with reference to accompanying drawing.But the present invention can implement in many different forms, and should not be construed as limited to the embodiments set forth herein.Above-mentioned different form comprises the focusing of different scenes, and is not limited to the scene in embodiment.Above-mentioned different form also comprises the initial focusing window of difformity, size, position, and is not limited to the initial focusing window in embodiment.
The embodiment of the present invention is as follows:
Perform the auto-focusing window adjustment of exemplary embodiment of the present for focusing window shown in Fig. 6, its flow process is with reference to Fig. 3 and Fig. 4, and system chart is with reference to Fig. 5.Concrete implementation step is:
1) user chooses scenery S interested in Fig. 6, and focusing window is rectangle, comprises image the 715th row to the 1100th row, and the 960th row are to the pixel of the 1330th row, and focusing window has summit P 1(715,960), P 2(715,1330), P 3(1100,960), P 4(1100,1330).
2) for rectangle focusing window, only need to carry out calculating to its four summits to obtain new focusing window.Summit P is calculated successively by formula 1 1, P 2, P 3, P 4field angle θ 1, θ 2, θ 3, θ 4.Particularly, d 1for obtaining image distance 50.0mm during Fig. 6, namely image-receptive 1 is to the distance of camera lens 2, h 1for the image height on summit, namely summit is to the distance of picture centre.
3) as Fig. 7, moving lens obtains next frame image, calculates new image distance d according to now lens location 2=42.1mm.Again by formula 2, by step 2) the field angle θ that calculates 1, θ 2, θ 3, θ 4calculate the image height that in Fig. 6, focusing window summit is corresponding in the figure 7 successively, and then draw its position, i.e. P 1' (726,959), P 2' (726,1387), P 3' (1172,959), P 4' (1172,1387).With P 1', P 2', P 3', P 4' be summit, determine new focusing window.New focusing window moves together along with S and amplifies, and achieves scenery and follows.Because the window edge of the inventive method is calculated by image distance and field angle, have nothing to do with picture material itself, so do not affect by image blurring degree, there is robustness.
Fig. 8 shows the trace performance of the state two when image focusing changes continuously according to an exemplary embodiment of the present.This state image distance is 43.8mm, through this method calculate focusing window be the 724th row to 1157 row, the 959th row to the 1375th row.
Fig. 9 shows the trace performance of the state three when image focusing changes continuously according to an exemplary embodiment of the present.This state image distance is 45.4mm, through this method calculate focusing window be the 722nd row to 1142 row, the 959th row to the 1363rd row.
Figure 10 shows the trace performance of the state four when image focusing changes continuously according to an exemplary embodiment of the present.This state image distance is 47.0mm, through this method calculate focusing window be the 719th row to 1127 row, the 959th row to the 1352nd row.
Figure 11 shows the trace performance of the state five when image focusing changes continuously according to an exemplary embodiment of the present.This state image distance is 48.6mm, through this method calculate focusing window be the 717th row to 1112 row, the 960th row to the 1340th row.
As can be seen from Fig. 7 to Figure 11, because lens location continuously changes in focus process, during image defocus, the picture of object scene can be followed steadily according to the inventive method.
Figure 12 shows according to an exemplary embodiment of the present when object scene is close to initial focusing window during image border.This state image distance is 50.0mm, initial focusing window be the 660th row to 880 row, the 20th row to the 320th row.
Figure 13 shows the trace performance image of one of state when object scene floats to outside image according to an exemplary embodiment of the present.This state image distance is 45.7mm, through this method step 1) to 3) calculate focusing window be the 661st row to 900 row, the-62 row to the 264th row.Cast out after exceeding image boundary part, obtain focusing window be the 661st row to 900 row, the 1st row to the 264th row.
Figure 14 shows the trace performance image of one of state when object scene floats to outside image according to an exemplary embodiment of the present.This state image distance is 42.1mm, through this method step 1) to 3) calculate focusing window be the 662nd row to 917 row, the-129 row to the 218th row.Cast out after exceeding image boundary part, obtain focusing window be the 662nd row to 917 row, the 1st row to the 218th row.
Trace performance when object scene floats to outside image according to an exemplary embodiment of the present invention can be seen from Figure 12 to Figure 14, due to lens location in focus process away from image-receptive, image magnification ratio increases, when floating to outside image with object scene, the remaining picture of object scene can be followed according to the inventive method.Visible the technology of the present invention Be very effective is given prominence to, and can calculate picture drift value fast, steadily, realizes focusing window and follows object scene adjustment.

Claims (9)

1. an auto-focusing window method of adjustment, is characterized in that the method comprises the following steps:
1) initial focusing window is determined by area-of-interest;
2) for every bit on initial focusing window border, its field angle is calculated by the image height of each point and image distance;
3) in focus process, camera lens (2) position adjusts focusing window when changing in the following ways: obtain new image distance by new lens location, the image height obtaining new focusing window frontier point is calculated respectively by the field angle of new image distance and initial each frontier point of focusing window, connect the frontier point obtained, form new focusing window, thus realize following the image drifted about.
2. a kind of auto-focusing window method of adjustment according to claim 1, is characterized in that: described lens location change refers to the movement of camera lens along optical axis axis.
3. a kind of auto-focusing window method of adjustment according to claim 1, it is characterized in that: if new focusing window border exceeds the border of image, the part place image boundary that new focusing window border exceeds image boundary replaces, and namely gives up in focusing window and exceeds image boundary part.
4. a kind of auto-focusing window method of adjustment according to claim 1, is characterized in that: described initial focusing window shape, size, position all select change according to user.
5. a kind of auto-focusing window method of adjustment according to claim 1, is characterized in that: described step 2) middle Arbitrary Boundaries point S 1field angle θ adopt following formulae discovery:
θ = tan - 1 ( h 1 d 1 ) - - - ( 1 )
Wherein, h 1for frontier point S 1image height, d 1it is the image distance of the first two field picture.
6. a kind of auto-focusing window method of adjustment according to claim 1, is characterized in that: described step 3) in new focusing window frontier point S 2image height h 2adopt following formulae discovery:
h 2=d 2·tanθ(2)
Wherein, d 2for new image distance, θ is initial focusing window frontier point S 1field angle.
7. an auto-focusing window adjustment System, comprises focusing evaluation module, camera lens, lens driving module and search module, it is characterized in that:
Also comprise the focusing window computing module respectively with focusing evaluation module and lens driving model calling, the initial focusing window of user's input is transferred to focusing window computing module, focusing window computing module receives the image distance data that lens driving module transfer is come, and obtain new focusing window in conjunction with the image height process in initial focusing window, finally new focusing window is input in focusing evaluation module.
8. a kind of auto-focusing window adjustment System according to claim 7, is characterized in that: described lens driving module is the motor for driving camera lens to move forward and backward along optical axis.
9. a kind of auto-focusing window adjustment System according to claim 7, it is characterized in that: described focusing evaluation module carries out focusing evaluation according to the new focusing window that focusing window computing module sends, evaluation result is sent to search module, by the displacement of search module determination camera lens, control lens driving module moving lens.
CN201510974527.9A 2015-12-21 2015-12-21 A kind of auto-focusing window method of adjustment and system Active CN105573016B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510974527.9A CN105573016B (en) 2015-12-21 2015-12-21 A kind of auto-focusing window method of adjustment and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510974527.9A CN105573016B (en) 2015-12-21 2015-12-21 A kind of auto-focusing window method of adjustment and system

Publications (2)

Publication Number Publication Date
CN105573016A true CN105573016A (en) 2016-05-11
CN105573016B CN105573016B (en) 2019-01-18

Family

ID=55883314

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510974527.9A Active CN105573016B (en) 2015-12-21 2015-12-21 A kind of auto-focusing window method of adjustment and system

Country Status (1)

Country Link
CN (1) CN105573016B (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106777363A (en) * 2017-01-22 2017-05-31 广东小天才科技有限公司 Take pictures searching method and the device of a kind of mobile terminal
CN107613204A (en) * 2017-09-28 2018-01-19 努比亚技术有限公司 Adjusting method and terminal, the computer-readable storage medium of a kind of focusing area
CN108197299A (en) * 2018-01-24 2018-06-22 广东小天才科技有限公司 A kind of taking pictures based on hand-held photographing device searches topic method and system
CN108322726A (en) * 2018-05-04 2018-07-24 浙江大学 A kind of Atomatic focusing method based on dual camera
CN109510939A (en) * 2017-09-15 2019-03-22 中兴通讯股份有限公司 ROI method of adjustment, device and the storage medium of camera scaling focusing
CN111226433A (en) * 2018-08-24 2020-06-02 深圳市大疆创新科技有限公司 Specifying device, control device, imaging device, specifying method, and program

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1464323A (en) * 2002-06-13 2003-12-31 北京中星微电子有限公司 Process for automatic focusing
CN1971398A (en) * 2005-11-21 2007-05-30 三星Techwin株式会社 Imaging device and image processing method
CN101065956A (en) * 2004-11-25 2007-10-31 夏普株式会社 Focusing area adjusting camera-carrying portable terminal
US20100277614A1 (en) * 2009-04-29 2010-11-04 Hon Hai Precision Industry Co., Ltd. Image capture device and control method thereof
CN102650801A (en) * 2011-02-25 2012-08-29 鸿富锦精密工业(深圳)有限公司 Camera and automatic focusing method thereof
CN102763405A (en) * 2010-02-16 2012-10-31 株式会社理光 Imaging device including target tracking function

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1464323A (en) * 2002-06-13 2003-12-31 北京中星微电子有限公司 Process for automatic focusing
CN101065956A (en) * 2004-11-25 2007-10-31 夏普株式会社 Focusing area adjusting camera-carrying portable terminal
CN1971398A (en) * 2005-11-21 2007-05-30 三星Techwin株式会社 Imaging device and image processing method
US20100277614A1 (en) * 2009-04-29 2010-11-04 Hon Hai Precision Industry Co., Ltd. Image capture device and control method thereof
CN102763405A (en) * 2010-02-16 2012-10-31 株式会社理光 Imaging device including target tracking function
CN102650801A (en) * 2011-02-25 2012-08-29 鸿富锦精密工业(深圳)有限公司 Camera and automatic focusing method thereof

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
刘雪超: "基于数字图像处理的自动调焦技术研究", 《中国科学院大学博士学位论文》 *

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106777363A (en) * 2017-01-22 2017-05-31 广东小天才科技有限公司 Take pictures searching method and the device of a kind of mobile terminal
CN109510939A (en) * 2017-09-15 2019-03-22 中兴通讯股份有限公司 ROI method of adjustment, device and the storage medium of camera scaling focusing
CN107613204A (en) * 2017-09-28 2018-01-19 努比亚技术有限公司 Adjusting method and terminal, the computer-readable storage medium of a kind of focusing area
CN107613204B (en) * 2017-09-28 2020-08-28 努比亚技术有限公司 Focusing area adjusting method, terminal and computer storage medium
CN108197299A (en) * 2018-01-24 2018-06-22 广东小天才科技有限公司 A kind of taking pictures based on hand-held photographing device searches topic method and system
CN108197299B (en) * 2018-01-24 2020-07-24 广东小天才科技有限公司 Photographing and question searching method and system based on handheld photographing equipment
CN108322726A (en) * 2018-05-04 2018-07-24 浙江大学 A kind of Atomatic focusing method based on dual camera
CN111226433A (en) * 2018-08-24 2020-06-02 深圳市大疆创新科技有限公司 Specifying device, control device, imaging device, specifying method, and program
CN111226433B (en) * 2018-08-24 2022-04-12 深圳市大疆创新科技有限公司 Specifying device, control device, imaging device, specifying method, and program

Also Published As

Publication number Publication date
CN105573016B (en) 2019-01-18

Similar Documents

Publication Publication Date Title
CN105573016A (en) Adjustment method and adjustment system for automatic focusing window
CN109451244B (en) Automatic focusing method and system based on liquid lens
CN103209298B (en) Camera focuses on adaptability fuzzy matching models fitting automatically
CN102223477A (en) Four-dimensional polynomial model for depth estimation based on two-picture matching
CN102131052B (en) Method and apparatus for auto-focus control of digital camera
TW201312249A (en) Image processing system and automatic focusing method
TW201126453A (en) Autofocus with confidence measure
CN105007420A (en) Focusing method and mobile terminal
KR20090028255A (en) Method and apparatus for auto focusing of image capturing
CN105629628A (en) Automatic focusing method and device
JP2014211574A (en) Imaging apparatus, and control method and program therefor
CN107534723B (en) Automatic focusing method, device and equipment
CN112333379A (en) Image focusing method and device and image acquisition equipment
JP2011237585A (en) Imaging device and control method thereof
CN103852954A (en) Method for achieving phase focusing
JP2006072384A (en) Method and device for automatic focus adjustment
JP5879736B2 (en) Image tracking device and imaging device
JP2013254166A (en) Imaging device and control method of the same
JP6485116B2 (en) Focus position detection device, focus position detection method, and computer program for focus position detection
US10404904B2 (en) Focus detection device, focus adjustment device, and camera
TWI611235B (en) Image sensor, electric device and focusing method thereof
CN203012315U (en) Device for realizing phase focusing
JP5023750B2 (en) Ranging device and imaging device
JP2017192028A (en) Imaging apparatus and control method of the same, program, and memory medium
US8823860B2 (en) Apparatus for auto-focusing detection, camera applying the same, and method for calculating distance to subject

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant