CN101387812A - Camera auto-focusing system and method - Google Patents

Camera auto-focusing system and method Download PDF

Info

Publication number
CN101387812A
CN101387812A CNA2007102016803A CN200710201680A CN101387812A CN 101387812 A CN101387812 A CN 101387812A CN A2007102016803 A CNA2007102016803 A CN A2007102016803A CN 200710201680 A CN200710201680 A CN 200710201680A CN 101387812 A CN101387812 A CN 101387812A
Authority
CN
China
Prior art keywords
picture
rectangle frame
coordinate
focusing
summits
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
CNA2007102016803A
Other languages
Chinese (zh)
Other versions
CN101387812B (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.)
Hangzhou Hikvision Digital Technology Co Ltd
Original Assignee
Hongfujin Precision Industry Shenzhen Co Ltd
Hon Hai Precision Industry 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 Hongfujin Precision Industry Shenzhen Co Ltd, Hon Hai Precision Industry Co Ltd filed Critical Hongfujin Precision Industry Shenzhen Co Ltd
Priority to CN2007102016803A priority Critical patent/CN101387812B/en
Publication of CN101387812A publication Critical patent/CN101387812A/en
Application granted granted Critical
Publication of CN101387812B publication Critical patent/CN101387812B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

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

Abstract

A camera automatic focusing method can automatically focus moving persons, which comprises the steps of: detecting a relative position of human face in a first picture, taking a diagonal line of a rectangle frame in the picture to obtain the coordinates of two top points of the diagonal line; according to the coordinates of the two tops points of the diagonal line of the first picture, calculating the area S1 of the rectangle frame in the first picture; detecting a relative position of the human face in a second picture, taking a diagonal line of the rectangle frame in the picture to obtain the coordinates of two top points of the diagonal line; according to the coordinates of the two tops points of the diagonal line of the second picture, calculating the area S2 of the rectangle frame; comparing S2 and S1; if S2 is larger than S1, considering that the object person should move to the near shooting direction and control the camera to focus and scan toward to the near shooting direction, if S2 is smaller than S1, controlling the camera to focus and scan toward infinite part. The invention further provides a camera automatic focusing system.

Description

Camera autofocus system and method
Technical field
The present invention relates to a kind of camera autofocus system and method.
Background technology
When taking pictures, the personage is the main body of picture normally, so all focusings, photometry all should be carried out based on character facial.For general camera, the Focus hold operation of this locking that need expose, domestic consumer grasps not too easily.In the market, people's face focusing technology is very universal, and this technology can allow whether camera is discerned automatically the people in the picture face, and automatically with people's face as the main body of taking.Camera all will adjusted at the situation of people's face aspect focusing and the exposure control.Like this, photographer just can be absorbed in the assurance of composition and right moment for camera, can not disperseed energy by loaded down with trivial details operation again.
But, when opening the people of continuous focus function shooting in mobile photo, people's position does not stop to change, then need to change at any time focusing range, at this moment focusing motor can not be judged people's moving direction track, needs constantly front and back scanning focusing and changes focusing range, up to scanning people's face, waste a lot of times, can not be in time and the instantaneous clear pictures of clearly catching the people in moving.
Summary of the invention
In view of above content, be necessary to provide a kind of camera autofocus system, utilize people's appearance for the size variation of whole image and the direction and the track of the continuous focusing of position judgment, reduce the time of focusing.
In view of above content, be necessary to provide a kind of camera method of focusing automatically, utilize people's appearance for the size variation of whole image and the position judgment direction and the track of focusing continuously, reduce the time of focusing.
A kind of camera autofocus system, automatically focus when being used to take mobile human body photo, this system comprises automatically continuously the focusing program and moves the digital information processing system of this automatically continuous focusing program, this digital information processing system stores first picture and second picture, this first picture and second picture are two people's faces focusing pictures that the person of being taken grasps at when moving continuously, described first picture and second picture are lived people's face with the rectangle circle respectively, should automatically continuous focusing program comprise: detecting module, be used for detecting the relative position of people's face at first picture, get a diagonal line of the rectangle frame in this picture, obtain the coordinate on these cornerwise two summits; Computing module is used for the area S1 according to rectangle frame in coordinate Calculation first picture on two summits of the described first picture diagonal line; Described detecting module also is used for detecting the relative position of people's face at second picture, gets a diagonal line of rectangle frame in this picture, obtains the coordinate on these cornerwise two summits; Described computing module is used for the coordinate according to two summits of diagonal line of described second picture, calculates the area S2 of this rectangle frame; Judge module, whether the area S2 of rectangle frame that is used for judging second picture is greater than the area S1 of the rectangle frame in first picture; And Focusing module, being used for as S2 during greater than S1, the control camera scans towards the focusing of close-shot direction; As S2 during less than S1, the control camera is towards unlimited distance focusing scanning.
A kind of camera method of focusing automatically, automatically focus when being used for taking the human body photo that moves, this method comprises the steps: to detect the relative position of people's face in first picture, gets a diagonal line of the rectangle frame in this picture, obtains the coordinate on these cornerwise two summits; Area S1 according to rectangle frame in coordinate Calculation first picture on cornerwise two summits in described first picture; Detect the relative position of people's face in second picture, get a diagonal line of rectangle frame in this picture, obtain the coordinate on these cornerwise two summits; Area S2 according to this rectangle frame of coordinate Calculation on two summits of diagonal line in described second picture; Whether the area S2 that judges the rectangle frame in second picture is greater than the area S1 of the rectangle frame in first picture; If S2, then judges the person of being taken greater than S1 and moves the control camera towards close-shot direction focusing scanning towards the close-shot direction; As S2 during less than S1, the control camera is towards unlimited distance focusing scanning.
Compared to prior art, the present invention utilizes people's appearance for the size variation of whole image and the direction and the track of the continuous focusing of position judgment, reduces the time of automatic focusing.
Description of drawings
Fig. 1 is the hardware Organization Chart of camera autofocus system of the present invention.
Fig. 2 is focus the automatically synoptic diagram of method preferred embodiment of camera of the present invention.
Fig. 3 is the functional block diagram of automatically continuous focusing program among Fig. 1.
Fig. 4 is focus the automatically process flow diagram of preferred embodiment of method of camera of the present invention.
Embodiment
As shown in Figure 1, be the hardware Organization Chart of camera autofocus system of the present invention.This system comprises: automatically continuous focusing program 10, should automatically continuous focusing program 10 run on a numerical digit signal processing system (Digital Signal Process, be called for short DSP) 12, this dsp system 12 stores the picture of the continuous action of the people in captured the moving.
As shown in Figure 2, be focus the automatically synoptic diagram of method preferred embodiment of camera of the present invention.Shown in first picture 1 (hereinafter to be referred as picture 1) and second picture 2 (hereinafter to be referred as picture 2) be two people's faces focusing pictures, and this people's face focusing picture is the picture of the person's of being taken continuous action, lives people's face with a rectangle circle respectively in each picture.
As shown in Figure 3, be the functional block diagram of automatically continuous focusing program 10 among Fig. 1.Should automatically continuous focusing program comprise: detecting module 20, computing module 22, judge module 24, Focusing module 26.
Detecting module 20 is used for detecting the relative position of people's face at picture 1, and described rectangle circle is lived people's face, gets wherein diagonal line of this rectangle focusing frame, obtains the coordinate on these cornerwise two summits, as a M, and some N, as shown in Figure 2.
Computing module 22 is used on average being divided into several lattices according to big young pathbreaker's picture of the object that will take, in the present embodiment, is that example describes to divide 16 lattices.
Described computing module 22, also be used for calculating the area S1 of picture 1 rectangle frame, and calculate the coordinate of the central point O of this frame, the central point O of this rectangle frame promptly is the central point of people's face, point A is in a lattice ABCD, calculate four summits of this grid: the coordinate of some A, some B, some C and some D, as shown in Figure 2, current focusing zone is the zone at grid ABCD place.
Described detecting module 20 also is used for detecting the relative position of people's face at picture 2, and the rectangle circle is lived the people's face in this picture 2, gets a diagonal line of this rectangle, obtains the coordinate on these cornerwise two summits, as a M`, and some N`, as shown in Figure 2.
Described computing module 22, also be used for calculating the area S2 of this rectangle frame of picture 2, and calculate the coordinate of the central point O` of this rectangle frame, some O` is in a lattice A`B`C`D`, calculate four summits of this grid: the coordinate of some A`, some B`, some C` and some D`, as shown in Figure 2.
Judge module 24 is used for the coordinate of judging point A, some B, some C and some D and the coordinate of some A`, some B`, some C` and some D` and whether distinguishes correspondent equal; If unequal, judge that then captured people has left focusing range, need focusing again.
Focusing module 26 is used for when described judge module 24 judges that the people has left focusing range, and the zone of then will focusing is made as the zone at grid A`B`C`D` place.
Described judge module 24 is used to also judge that whether S2 is greater than S1.
Described Focusing module 26 also is used for as S2 during greater than S1, towards macro (close-shot) direction focusing scanning, as S2 during less than S1, towards unlimited distance focusing scanning.
As shown in Figure 4, be focus the automatically process flow diagram of preferred embodiment of method of camera of the present invention.
At first, step S30, computing module 22 on average is divided into a plurality of grids according to the person's of being taken big young pathbreaker first picture and second picture, detecting module 20 is done human face detection and is found out the relative position of people's face in picture 1, and described rectangle circle is lived people's face, gets wherein diagonal line of this rectangle focusing frame, obtain the coordinate on these cornerwise two summits, as a M, some N, as shown in Figure 2.
Step S32, computing module 22 calculates the area S1 of rectangle frame in the picture 1, and calculate the coordinate of the central point O of this frame, the central point O of this rectangle frame promptly is the central point of people's face, point A is in a lattice ABCD, calculate four summits of this grid: the coordinate of some A, some B, some C and some D, as shown in Figure 2, current focusing zone is grid ABCD.
Step S34, the relative position of detecting module 20 detecting people's faces in picture 2, the rectangle circle is lived the people's face in this picture 2, gets a diagonal line of this rectangle, obtains the coordinate on these cornerwise two summits, as a M`, some N`, as shown in Figure 2.
Step S36, described computing module 22 calculates the area S2 of this rectangle frame in the picture 2, and calculates the coordinate of the central point O` of this rectangle frame, and some O` is in a lattice A`B`C`D`, calculate four summits of this grid: the coordinate of some A`, some B`, some C` and some D`, as shown in Figure 2.
Step S38, whether the coordinate of the coordinate of judge module 24 judging point A, some B, some C and some D and some A`, some B`, some C` and some D` distinguishes correspondent equal; If unequal, judge that then captured people has left focusing range, need focusing again.
Whether the area S2 that step S40, judge module 24 judge the rectangle frame in the described picture 2 respectively is greater than the area S1 of the rectangle frame in the picture 1.
Step S42, greater than S1, then Focusing module 26 is toward macro directions focusing scanning as if S2.
Step S44 among the above-mentioned steps S38, when described judge module 24 judges that the people has left focusing range, then changes the focusing center, and the zone of will focusing moves on to grid A`B`C`D`.
Step S46, among the above-mentioned steps S40, less than S1, then described Focusing module 26 is toward unlimited distances focusing scanning as if S2.

Claims (7)

  1. [claim 1] a kind of camera autofocus system, automatically focus when being used to take mobile human body photo, this system comprises automatically continuously the focusing program and moves the digital information processing system of this automatically continuous focusing program, this digital information processing system stores first picture and second picture, this first picture and second picture are two people's faces focusing pictures that the person of being taken grasps at when moving continuously, described first picture and second picture are lived people's face with the rectangle circle respectively, it is characterized in that this automatically continuous focusing program comprises:
    Detecting module is used for detecting the relative position of people's face at first picture, gets a diagonal line of the rectangle frame in this picture, obtains the coordinate on these cornerwise two summits;
    Computing module is used for the area S1 according to rectangle frame in coordinate Calculation first picture on two summits of the described first picture diagonal line;
    Described detecting module also is used for detecting the relative position of people's face at second picture, gets a diagonal line of rectangle frame in this picture, obtains the coordinate on these cornerwise two summits;
    Described computing module is used for the coordinate according to two summits of diagonal line of described second picture, calculates the area S2 of this rectangle frame;
    Judge module, whether the area S2 of rectangle frame that is used for judging second picture is greater than the area S1 of the rectangle frame in first picture; And
    Focusing module is used for as S2 during greater than S1, and the control camera is towards close-shot direction focusing scanning; As S2 during less than S1, the control camera is towards unlimited distance focusing scanning.
  2. [claim 2] camera autofocus system as claimed in claim 1, it is characterized in that, described computing module also is used on average being divided into a plurality of grids according to the person's of being taken big young pathbreaker first picture and second picture, calculate the coordinate on four summits of the coordinate of central point of the rectangle frame in first picture and this central point place grid, and calculate the coordinate on four summits of the coordinate of the central point of rectangle frame in second picture and this central point place grid.
  3. [claim 3] camera autofocus system as claimed in claim 2, it is characterized in that, described judge module, whether the coordinate that also is used for judging four summit correspondences of the central point place grid of rectangle frame in the coordinate on four summits of central point place grid of the first picture rectangle frame and second picture equates respectively, if equate, then do not change focusing range, focusing range is still in first picture in the grid at the central point place of rectangle frame; If unequal, in the grid at the regional central point place that moves on to rectangle frame in second picture of then will focus.
  4. [claim 4] a kind of camera method of focusing is automatically focused when being used for taking the human body photo that moves automatically, it is characterized in that this method comprises the steps:
    Detect the relative position of people's face in first picture, get a diagonal line of the rectangle frame in this picture, obtain the coordinate on these cornerwise two summits;
    Area S1 according to rectangle frame in coordinate Calculation first picture on cornerwise two summits in described first picture;
    Detect the relative position of people's face in second picture, get a diagonal line of rectangle frame in this picture, obtain the coordinate on these cornerwise two summits;
    Area S2 according to this rectangle frame of coordinate Calculation on two summits of diagonal line in described second picture;
    Whether the area S2 that judges the rectangle frame in second picture is greater than the area S1 of the rectangle frame in first picture;
    If S2, then judges the person of being taken greater than S1 and moves the control camera towards close-shot direction focusing scanning towards the close-shot direction;
    As S2 during less than S1, the control camera is towards unlimited distance focusing scanning.
  5. [claim 5] camera as claimed in claim 4 method of focusing automatically, it is characterized in that this method also comprised: big young pathbreaker first picture and second picture according to the person of being taken on average are divided into a plurality of grids before the step of the relative position of detecting people's face in first picture.
  6. [claim 6] camera as claimed in claim 5 method of focusing automatically, it is characterized in that the area S1 that described step is calculated rectangle frame in first picture also comprises step: the coordinate on four summits that calculates the grid at the coordinate of central point of the rectangle frame in first picture and this central point place; The area S2 that described step is calculated rectangle frame in second picture also comprises step: the coordinate that calculates four summits of the coordinate of the central point of rectangle frame in second picture and this central point place grid.
  7. [claim 7] camera as claimed in claim 6 method of focusing automatically, it is characterized in that whether the area S2 of the rectangle frame of this method in judging second picture also comprises before the area S1 step greater than the rectangle frame in first picture: whether the coordinate of judging four summit correspondences of the grid at the central point place of rectangle frame in the coordinate on four summits of grid at central point place of rectangle frame in first picture and second picture equates respectively; If equate, then do not change focusing range, focusing range is still in first picture in the grid at the central point place of rectangle frame; If unequal, in the grid at the regional central point place that moves on to rectangle frame in second picture of then will focus.
CN2007102016803A 2007-09-13 2007-09-13 Camera auto-focusing system and method Active CN101387812B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2007102016803A CN101387812B (en) 2007-09-13 2007-09-13 Camera auto-focusing system and method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2007102016803A CN101387812B (en) 2007-09-13 2007-09-13 Camera auto-focusing system and method

Publications (2)

Publication Number Publication Date
CN101387812A true CN101387812A (en) 2009-03-18
CN101387812B CN101387812B (en) 2011-03-23

Family

ID=40477297

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2007102016803A Active CN101387812B (en) 2007-09-13 2007-09-13 Camera auto-focusing system and method

Country Status (1)

Country Link
CN (1) CN101387812B (en)

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102650801A (en) * 2011-02-25 2012-08-29 鸿富锦精密工业(深圳)有限公司 Camera and automatic focusing method thereof
CN103179335A (en) * 2011-09-01 2013-06-26 瑞萨电子株式会社 Object tracking device
CN103795933A (en) * 2014-03-03 2014-05-14 联想(北京)有限公司 Image processing method and electronic device
CN104168425A (en) * 2014-09-02 2014-11-26 厦门美图之家科技有限公司 Photographing method for preventing jittering or focusing blurring in handheld photographing process and mobile terminal
CN104902161A (en) * 2014-03-03 2015-09-09 联想(北京)有限公司 Information processing method and electronic equipment
CN105704360A (en) * 2014-11-25 2016-06-22 索尼公司 Auxiliary automatic focusing method, device and electronic device
WO2018219275A1 (en) * 2017-05-31 2018-12-06 Oppo广东移动通信有限公司 Focusing method and device, computer-readable storage medium, and mobile terminal
WO2019104569A1 (en) * 2017-11-30 2019-06-06 深圳市大疆创新科技有限公司 Focusing method and device, and readable storage medium
CN110505408A (en) * 2019-09-12 2019-11-26 深圳传音控股股份有限公司 Terminal image pickup method, device, mobile terminal and readable storage medium storing program for executing
WO2022021093A1 (en) * 2020-07-28 2022-02-03 深圳市大疆创新科技有限公司 Photographing method, photographing apparatus, and storage medium

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1304901C (en) * 2001-10-31 2007-03-14 金宝电子工业股份有限公司 Automatic focusing method of camera
CN100424580C (en) * 2005-03-07 2008-10-08 普立尔科技股份有限公司 Automatic focusing system of traditional camera and its automatic forcusing method

Cited By (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102650801A (en) * 2011-02-25 2012-08-29 鸿富锦精密工业(深圳)有限公司 Camera and automatic focusing method thereof
CN103179335A (en) * 2011-09-01 2013-06-26 瑞萨电子株式会社 Object tracking device
CN103795933A (en) * 2014-03-03 2014-05-14 联想(北京)有限公司 Image processing method and electronic device
CN104902161A (en) * 2014-03-03 2015-09-09 联想(北京)有限公司 Information processing method and electronic equipment
CN103795933B (en) * 2014-03-03 2018-02-23 联想(北京)有限公司 A kind of image processing method and electronic equipment
CN104168425A (en) * 2014-09-02 2014-11-26 厦门美图之家科技有限公司 Photographing method for preventing jittering or focusing blurring in handheld photographing process and mobile terminal
CN105704360A (en) * 2014-11-25 2016-06-22 索尼公司 Auxiliary automatic focusing method, device and electronic device
WO2018219275A1 (en) * 2017-05-31 2018-12-06 Oppo广东移动通信有限公司 Focusing method and device, computer-readable storage medium, and mobile terminal
WO2019104569A1 (en) * 2017-11-30 2019-06-06 深圳市大疆创新科技有限公司 Focusing method and device, and readable storage medium
CN110505408A (en) * 2019-09-12 2019-11-26 深圳传音控股股份有限公司 Terminal image pickup method, device, mobile terminal and readable storage medium storing program for executing
CN110505408B (en) * 2019-09-12 2021-07-27 深圳传音控股股份有限公司 Terminal shooting method and device, mobile terminal and readable storage medium
WO2022021093A1 (en) * 2020-07-28 2022-02-03 深圳市大疆创新科技有限公司 Photographing method, photographing apparatus, and storage medium

Also Published As

Publication number Publication date
CN101387812B (en) 2011-03-23

Similar Documents

Publication Publication Date Title
CN101387812B (en) Camera auto-focusing system and method
US8797381B2 (en) Image processing apparatus and image processing method
US10277798B2 (en) Multiple lenses system, operation method and electronic device employing the same
EP2273450B1 (en) Target tracking and detecting in images
CN102970485B (en) A kind of Atomatic focusing method and device
US20130070142A1 (en) Imaging Device and Imaging Method for Imaging Device
CN101794056B (en) Photographing setting control method and photographing device
US20180027164A1 (en) Imaging device, method and system of providing fill light, and movable object
US9692960B2 (en) Method and system for enabling camera of mobile terminal to automatically adapt camera parameters according to scene motion
CN103997598A (en) Method of tracking object using camera and camera system for object tracking
JP2009060379A (en) Imaging device and its program
JP2008276214A (en) Digital camera
US20150181106A1 (en) Imaging apparatus and focus control method
KR101023339B1 (en) System for automatically tracking of moving subjects and method of same
CN105827929A (en) Photographing method and photographing device of mobile terminal camera
CN100492088C (en) Automatic focusing method
JPH04133576A (en) Image pickup device
CN102737384A (en) Automatic spherical camera tracing method
CN102650801A (en) Camera and automatic focusing method thereof
CN108197601A (en) A kind of Intelligent human-face tracks exposure system
CN116456187A (en) Method, device, equipment and storage medium for calculating focus value
JP2009020163A5 (en)
JP2006301172A (en) Imaging apparatus and method for controling imaging apparatus
JP2013098746A (en) Imaging apparatus, imaging method, and program
CN102131049B (en) Face focusing method of image capturing device

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
ASS Succession or assignment of patent right

Free format text: FORMER OWNER: HONGFUJIN PRECISE INDUSTRY CO., LTD.

Effective date: 20150716

Owner name: BEIJING WEIBEN INTELLECTUAL PROPERTY MANAGEMENT CO

Free format text: FORMER OWNER: HONGFUJIN PRECISE INDUSTRY (SHENZHEN) CO., LTD.

Effective date: 20150716

C41 Transfer of patent application or patent right or utility model
TR01 Transfer of patent right

Effective date of registration: 20150716

Address after: 100080 room 401A, building 27, 1 Xin Lu, Haidian District, Beijing

Patentee after: Beijing Weiben Intellectual Property Management Co. Ltd.

Address before: 518109 Guangdong city of Shenzhen province Baoan District Longhua Town Industrial Zone tabulaeformis tenth East Ring Road No. 2 two

Patentee before: Hongfujin Precise Industry (Shenzhen) Co., Ltd.

Patentee before: Hon Hai Precision Industry Co., Ltd.

ASS Succession or assignment of patent right

Owner name: HANGZHOU HIKVISION DIGITAL TECHNOLOGY CO., LTD.

Free format text: FORMER OWNER: BEIJING WEIBEN INTELLECTUAL PROPERTY MANAGEMENT CO., LTD.

Effective date: 20150812

C41 Transfer of patent application or patent right or utility model
TR01 Transfer of patent right

Effective date of registration: 20150812

Address after: No. 555 Kang Hangzhou Science Park of Zhejiang province Binjiang District Qianmo road 310053

Patentee after: Hangzhou Hikvision Digital Technology Co., Ltd.

Address before: 100080 room 401A, building 27, 1 Xin Lu, Haidian District, Beijing

Patentee before: Beijing Weiben Intellectual Property Management Co. Ltd.