CN105573016B - A kind of auto-focusing window method of adjustment and system - Google Patents

A kind of auto-focusing window method of adjustment and system Download PDF

Info

Publication number
CN105573016B
CN105573016B CN201510974527.9A CN201510974527A CN105573016B CN 105573016 B CN105573016 B CN 105573016B CN 201510974527 A CN201510974527 A CN 201510974527A CN 105573016 B CN105573016 B CN 105573016B
Authority
CN
China
Prior art keywords
focusing window
image
focusing
new
boundary
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
Application number
CN201510974527.9A
Other languages
Chinese (zh)
Other versions
CN105573016A (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
Expired - Fee Related 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

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Automatic Focus Adjustment (AREA)
  • Studio Devices (AREA)

Abstract

The invention discloses a kind of auto-focusing window method of adjustment and systems.Initial focusing window is determined by area-of-interest, its field angle is calculated by image height and image distance in every bit on focusing window boundary, new image distance is obtained by new lens location when lens location changes in focus process, the image height for obtaining new focusing window boundary point is calculated with new image distance and the field angle of initial focusing window boundary point, new focusing window is formed, part of the new focusing window boundary beyond image-receptive boundary image boundary where replaces.The present invention solves the problems, such as that magnification change causes as drifting about during digital camera auto-focusing, can unknown material away from the case where rapidly calculate as drift value caused by magnification change, and then adjust focusing window, realize that scenery follows.This method is not influenced by image fog-level, is calculated simply, robustness is good.

Description

A kind of auto-focusing window method of adjustment and system
Technical field
The invention belongs to digital imaging technology field, it is related to a kind of auto-focusing window method of adjustment and system.
Background technique
During digital camera auto-focusing, usually select interested region for window of focusing in viewfinder by user Mouthful, focusing evaluation then is carried out to the image in focusing window by camera, to judge best focus position.However, such as Fig. 1 institute Show, with the back-and-forth motion of camera lens in focus process, imaging magnification changes, the focusing window for causing user to input The picture of interior scenery drifts about, thus the problems such as generating inconsistent focus target, focusing inaccuracy.
Traditional auto-focusing window selection does not consider the drift of picture caused by magnification change in focus process generally, quiet In scape shooting, no longer change after focusing window is selected.
Be presently available for solve focusing window in scenery picture drift about the prior art first is that moving subjects tracking Technology.This kind of technology is primarily based on Computer Vision Detection and goes out the physical feature to match in adjacent two field pictures, then calculates The displacement of moving subjects out, and then corresponding adjustment is made to focusing window, realize moving subjects tracking.The disadvantage of this type of technology is that On the one hand calculate complicated, on the other hand big for fuzzy quantity its robustness of image is poor, it is difficult to realize characteristic matching.
Therefore, the prior art lacks a kind of targeted, quick, steady solution.
Summary of the invention
In order to solve the problems, such as background technique, the invention proposes a kind of auto-focusing window method of adjustment and it is System solves the technical issues of magnification change in focus process causes the picture of object scene to drift about.
The technical solution adopted by the invention is as follows:
One, a kind of magnification change leads to the auto-focusing window method of adjustment as drifting about, and as shown in Figure 4 includes following step It is rapid:
1) initial focusing window is determined by area-of-interest;
2) for every bit on initial focusing window boundary, its field angle is calculated by the image height and image distance of each point;
3) in focus process, lens location is in the following ways updated focusing window when changing: by new camera lens Position obtains new image distance, calculates separately the new focusing of acquisition with the field angle of new image distance and each boundary point of initial focusing window The image height of window edge point, connects these boundary points, forms new focusing window, to realize following to the image of drift.
The lens location, which changes, refers to camera lens moving along optical axis axial direction.Focusing window boundary changes with lens location, It is unrelated with picture material itself.
If new focusing window boundary exceeds the boundary of image-receptive, new focusing window boundary exceeds image-receptive The part on boundary image boundary where replaces, that is, gives up in focusing window beyond image boundary part.
The initial focusing window shape, size, position select to change all in accordance with user.
Arbitrary Boundaries point S in the step 2)1Field angle θ be calculated using the following equation:
Wherein, h1For boundary point S1Image height, d1The image distance of boundary point when for first frame image, i.e., initial focusing window Image distance.
New focusing window boundary point S in the step 3)2Image height h2It is calculated using the following equation:
h2=d2·tanθ (4)
Wherein, d2For new image distance, θ is initial focusing window boundary point S1Field angle.
Magnification change causes as the problem of drift during the method for the present invention is directed to digital camera auto-focusing.
Two, a kind of magnification change leads to the auto-focusing window adjustment system as drifting about:
It further include difference as shown in figure 5, including focusing evaluation module, camera lens, lens driving module and search module The focusing window computing module being connect with focusing evaluation module and lens driving module, the initial focusing window transmission of user's input To focusing window computing module, focusing window computing module receives the image distance data that lens driving module transfer comes, and combines Image height processing in initial focusing window obtains new focusing window, and new focusing window is finally input to focusing evaluation module In.
The lens driving module is the motor for driving camera lens to be moved forward and backward along optical axis.
It is described focusing evaluation module according to focusing window computing module transmit come new focusing window carry out focusing evaluation, Search module is sent by evaluation result, the displacement of camera lens is determined by search module, controls lens driving module moving lens.
The Atomatic focusing method process of focusing window variation is as shown in figure 3, the method for the present invention is related to wherein in the prior art The adjustment of focusing window.As shown in Figure 1, existing digital camera makes focus target exist in focusing, by being moved forward and backward camera lens At sharply defined image on fixed image-receptive, this focusing mode make unknown material away from the case where can not calculate by magnifying power Caused picture drift value.The method of the present invention moves the focusing model of variation mainly for camera lens shown in Fig. 1 along optical axis direction, simplifies The mobile model of image-receptive as shown in Figure 2 is obtained afterwards.Fig. 2's of the present invention simplifies focusing model, and main thought is will be right The movement of camera lens replaces with the movement of image-receptive in burnt model, can quickly calculate according to this model as drift value, To adjust to focusing window, realize that scenery follows.
The beneficial effects of the present invention are:
The present invention includes a kind of focusing model of simplification, can quickly, steadily be calculated based on this model as drift value, To realize that focusing window follows object scene to adjust.
The present invention can unknown material away from the case where find out as drift value, and then adjust focusing window, realize scenery with With.The method of the present invention is unrelated with picture material itself, is not influenced by image fog-level, has and calculates simply, robustness is good The advantages that.
Detailed description of the invention
Through the following detailed description taken in conjunction with the accompanying drawings, above and other of the invention aspect, features and advantages will be by more clear Understand to Chu, in which:
Fig. 1 is the focusing model of camera lens position change;
Fig. 2 is simplified model of focusing used in the present invention;
Fig. 3 is the Atomatic focusing method flow chart of focusing window variation;
Fig. 4 is that the method for the present invention focusing window adjusts flow chart;
Fig. 5 is present system module annexation figure;
Fig. 6 is initial focusing window of the embodiment of the present invention when lens location continuously changes;
Fig. 7 is the trace performance image of one of state when lens location continuously changes of the embodiment of the present invention;
Fig. 8 be the embodiment of the present invention when lens location continuously changes the two of state trace performance image;
Fig. 9 be the embodiment of the present invention when lens location continuously changes the three of state trace performance image;
Figure 10 be the embodiment of the present invention when lens location continuously changes the four of state trace performance image;
Figure 11 be the embodiment of the present invention when lens location continuously changes the five of state trace performance image;
Figure 12 is initial focusing window of the embodiment of the present invention when object scene is close to image border
Figure 13 be the embodiment of the present invention except object scene floats to image when one of state trace performance image.
Figure 14 be the embodiment of the present invention except object scene floats to image when state two trace performance image.
In figure: 1, image-receptive, 2, camera lens.
Specific embodiment
Exemplary embodiment of the present invention is described in detail with reference to the accompanying drawings.However, the present invention can be with many differences Form implement, and should not be construed as limited to the embodiments set forth herein.Above-mentioned different form includes to different fields Scape focusing, and it is not limited to the scene in embodiment.Above-mentioned different form further include different shapes and sizes, position it is initial right Burnt window, and it is not limited to the initial focusing window in embodiment.
The embodiment of the present invention is as follows:
The auto-focusing window adjustment of exemplary embodiment of the present, process are executed for the focusing window shown in Fig. 6 Referring to Fig. 3 and Fig. 4, system block diagram is referring to Fig. 5.Specific implementation step are as follows:
1) it is rectangle that user, which chooses scenery S interested, focusing window in Fig. 6, includes image the 715th row to the 1100th row, The pixel of 960th column to the 1330th column, focusing window have vertex P1(715,960)、P2(715,1330)、P3(1100,960)、P4 (1100,1330)。
2) for rectangle focusing window, it is only necessary to which carrying out calculating to its four vertex can be obtained new focusing window.By Formula 1 successively calculates vertex P1、P2、P3、P4Field angle θ1、θ2、θ3、θ4.Specifically, d1To obtain image distance when Fig. 6 50.0mm, i.e. image-receptive 1 arrive the distance of camera lens 2, h1For the image height on vertex, the i.e. distance on vertex to picture centre.
3) such as Fig. 7, moving lens obtain next frame image, new image distance d are calculated according to lens location at this time2= 42.1mm.Again by formula 2, with the calculated field angle θ of step 2)1、θ2、θ3、θ4Successively calculate focusing window vertex in Fig. 6 The corresponding image height in Fig. 7, and then obtain its position, i.e. P1'(726,959)、P2'(726,1387)、P3'(1172,959)、 P4'(1172,1387).With P1'、P2'、P3'、P4' it is vertex, determine new focusing window.New focusing window is moved together with S Dynamic and amplification, realizes scenery and follows.Since the window edge of the method for the present invention is calculated by image distance and field angle, with image Content itself is unrelated, so not influenced by image fog-level, has robustness.
Fig. 8 shows two followability of the state when image focusing continuously changes according to an exemplary embodiment of the present Energy.This state image distance is 43.8mm, and it is the 724th row to 1157 rows, the 959th column to that focusing window, which is calculated, through this method 1375 column.
Fig. 9 shows three followability of the state when image focusing continuously changes according to an exemplary embodiment of the present Energy.This state image distance is 45.4mm, and it is the 722nd row to 1142 rows, the 959th column to that focusing window, which is calculated, through this method 1363 column.
Figure 10 shows according to an exemplary embodiment of the present when image focusing continuously changes the four of state and follows Performance.This state image distance is 47.0mm, and it is the 719th row to 1127 rows, the 959th column to that focusing window, which is calculated, through this method 1352 column.
Figure 11 shows according to an exemplary embodiment of the present when image focusing continuously changes the five of state and follows Performance.This state image distance is 48.6mm, and it is the 717th row to 1112 rows, the 960th column to that focusing window, which is calculated, through this method 1340 column.
It is can be seen that from Fig. 7 to Figure 11 since lens location continuously changes during the focusing process, when image defocus, foundation The method of the present invention can steadily follow the picture of object scene.
Figure 12 shows the initial focusing window when object scene is close to image border according to an exemplary embodiment of the present Mouthful.This state image distance is 50.0mm, and initial focusing window is the 660th row to 880 rows, the 20th column to the 320th column.
Figure 13 shows according to an exemplary embodiment of the present one of state when except object scene floating to image Trace performance image.This state image distance be 45.7mm, through this method step 1) to 3) be calculated focusing window be the 661st row arrive 900 rows, the -62nd column to the 264th column.Casting out beyond focusing window behind image boundary part, is obtained is the 661st row to 900 rows, the 1 column to the 264th column.
Figure 14 shows according to an exemplary embodiment of the present one of state when except object scene floating to image Trace performance image.This state image distance be 42.1mm, through this method step 1) to 3) be calculated focusing window be the 662nd row arrive 917 rows, the -129th column to the 218th column.Casting out beyond focusing window behind image boundary part, is obtained is the 662nd row to 917 rows, 1st column to the 218th column.
When can see object scene according to an exemplary embodiment of the present invention from Figure 12 to Figure 14 and floating to except image Trace performance, since lens location is during the focusing process far from image-receptive, image magnification ratio increases, and is floated with object scene When moving on to except image, method can follow the remaining picture of object scene according to the present invention.It can be seen that the technology of the present invention significant effect It is prominent, it can quickly, steadily calculate as drift value, realize that focusing window follows object scene to adjust.

Claims (7)

1. a kind of auto-focusing window method of adjustment, it is characterised in that method includes the following steps:
1) initial focusing window is determined by area-of-interest;
2) for every bit on initial focusing window boundary, its field angle is calculated by the image height and image distance of each point;
3) in focus process, when camera lens (2) position change, is in the following ways adjusted focusing window: by new camera lens position It sets and obtains new image distance, calculate separately the new focusing window of acquisition with the field angle of new image distance and each boundary point of initial focusing window The image height of mouth boundary point, connects the boundary point of acquisition, forms new focusing window, to realize following to the image of drift;
Arbitrary Boundaries point S in the step 2)1Field angle θ be calculated using the following equation:
Wherein, h1For boundary point S1Image height, d1For the image distance of first frame image;
New focusing window boundary point S in the step 3)2Image height h2It is calculated using the following equation:
h2=d2·tanθ (2)
Wherein, d2For new image distance, θ is initial focusing window boundary point S1Field angle.
2. a kind of auto-focusing window method of adjustment according to claim 1, it is characterised in that: the lens location changes Refer to camera lens moving along optical axis axial direction.
3. a kind of auto-focusing window method of adjustment according to claim 1, it is characterised in that: if new focusing window side Boundary exceeds the boundary of image, and part of the new focusing window boundary beyond image boundary image boundary where replaces, that is, gives up Exceed image boundary part in focusing window.
4. a kind of auto-focusing window method of adjustment according to claim 1, it is characterised in that: the initial focusing window Mouth-shaped, size, position select to change all in accordance with user.
5. a kind of auto-focusing window adjusts system, including focusing evaluation module, camera lens, lens driving module and search mould Block, it is characterised in that:
It further include the focusing window computing module being connect respectively with focusing evaluation module and lens driving module, user inputs first Beginning focusing window is transferred to focusing window computing module, and focusing window computing module receives the picture that lens driving module transfer comes Away from data, and the image height processing in initial focusing window is combined to obtain new focusing window, finally inputs new focusing window Into focusing evaluation module;
Specifically processing obtains new focusing window in the following ways:
For every bit on initial focusing window boundary, its field angle is calculated by the image height and image distance of each point;
In focus process, when camera lens (2) position change, is in the following ways adjusted focusing window: by new lens location New image distance is obtained, is calculated separately with the field angle of new image distance and each boundary point of initial focusing window and obtains new focusing window The image height of boundary point connects the boundary point of acquisition, forms new focusing window, to realize following to the image of drift;
Wherein Arbitrary Boundaries point S1Field angle θ be calculated using the following equation:
Wherein, h1For boundary point S1Image height, d1For the image distance of first frame image;
New focusing window boundary point S2Image height h2It is calculated using the following equation:
h2=d2·tanθ (4)
Wherein, d2For new image distance, θ is initial focusing window boundary point S1Field angle.
6. a kind of auto-focusing window according to claim 5 adjusts system, it is characterised in that: the lens driving mould Block is the motor for driving camera lens to be moved forward and backward along optical axis.
7. a kind of auto-focusing window according to claim 5 adjusts system, it is characterised in that: the focusing evaluation module According to focusing window computing module transmit come new focusing window carry out focusing evaluation, send search mould for evaluation result Block is determined the displacement of camera lens by search module, controls lens driving module moving lens.
CN201510974527.9A 2015-12-21 2015-12-21 A kind of auto-focusing window method of adjustment and system Expired - Fee Related 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 CN105573016A (en) 2016-05-11
CN105573016B true CN105573016B (en) 2019-01-18

Family

ID=55883314

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510974527.9A Expired - Fee Related 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)

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106777363A (en) * 2017-01-22 2017-05-31 广东小天才科技有限公司 Photographing search method and device for mobile terminal
CN109510939A (en) * 2017-09-15 2019-03-22 中兴通讯股份有限公司 ROI method of adjustment, device and the storage medium of camera scaling focusing
CN107613204B (en) * 2017-09-28 2020-08-28 努比亚技术有限公司 Focusing area adjusting method, terminal and computer storage medium
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
JP6641572B1 (en) * 2018-08-24 2020-02-05 エスゼット ディージェイアイ テクノロジー カンパニー リミテッドSz Dji Technology Co.,Ltd Determination device, control device, imaging device, determination method, and program

Citations (4)

* 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
CN102650801A (en) * 2011-02-25 2012-08-29 鸿富锦精密工业(深圳)有限公司 Camera and automatic focusing method thereof

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101877764B (en) * 2009-04-29 2012-05-30 鸿富锦精密工业(深圳)有限公司 Camera system and method for carrying out assisted composition by utilizing same
JP2011193443A (en) * 2010-02-16 2011-09-29 Ricoh Co Ltd Target tracking device

Patent Citations (4)

* 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
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
基于数字图像处理的自动调焦技术研究;刘雪超;《中国科学院大学博士学位论文》;20141231;第105-121页 *

Also Published As

Publication number Publication date
CN105573016A (en) 2016-05-11

Similar Documents

Publication Publication Date Title
CN105573016B (en) A kind of auto-focusing window method of adjustment and system
US10425638B2 (en) Equipment and method for promptly performing calibration and verification of intrinsic and extrinsic parameters of a plurality of image capturing elements installed on electronic device
CN105721853B (en) Generate method, system and the computer readable storage devices of image capture instruction
WO2017167116A1 (en) Automatic-focus method and automatic-focus device
US9386223B2 (en) Image processing apparatus, image processing method and storage medium for acquiring an omnifocal image by combining multiple images with a specific order
TWI432870B (en) Image processing system and automatic focusing method
CN106454090B (en) Atomatic focusing method and system based on depth camera
CN110799921A (en) Shooting method and device and unmanned aerial vehicle
CN105678809A (en) Handheld automatic follow shot device and target tracking method thereof
CN106385541A (en) Method for realizing zooming through wide-angle photographing component and long-focus photographing component
CN104102068B (en) Atomatic focusing method and automatic focusing mechanism
JP2008294741A (en) Imaging system
CN104853105B (en) The fast automatic focusing method of three-dimensional based on the inclined photographic device of controllable camera lens
CN105744163A (en) Video camera and video recording method performing tracking focusing based on depth information
CN111899164B (en) Image splicing method for multi-focal-segment scene
CN104038691A (en) Auto Focus method and auto focus apparatus
JP2014168227A (en) Image processing apparatus, imaging apparatus, and image processing method
US20140307054A1 (en) Auto focus method and auto focus apparatus
TW201541141A (en) Auto-focus system for multiple lens and method thereof
CN104939793A (en) Variable-focus 3-D capsule endoscope system based on liquid lens
CN105184784A (en) Motion information-based method for monocular camera to acquire depth information
CN107534723A (en) Atomatic focusing method, device and equipment
CN110793000A (en) Intelligent focusing method for head shaking computer lamp based on machine vision
CN108347577B (en) Imaging system and method
CN108322726A (en) A kind of Atomatic focusing method based on dual camera

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
CF01 Termination of patent right due to non-payment of annual fee
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20190118